add row pop

This commit is contained in:
Kenneth Reitz
2011-06-21 20:02:12 -04:00
parent 004b3da680
commit 39b66ad8e9
+9
View File
@@ -571,6 +571,15 @@ class Dataset(object):
self.rpush(row, tags)
def pop(self):
"""Removes and returns the last row of the :class:`Dataset`."""
cache = self[-1]
del self[-1]
return cache
# -------
# Columns
# -------