mirror of
https://github.com/kennethreitz/tablib.git
synced 2026-06-05 15:00:19 +00:00
add row pop
This commit is contained in:
@@ -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
|
||||
# -------
|
||||
|
||||
Reference in New Issue
Block a user