datascience.tables.Table.last

Table.last(label)[source]

Return the last item in a column.

Args:

label (str) – value of column label

Returns:

last item of column

Example:

>>> t = Table().with_columns({
...     'letter': ['a', 'b', 'c', 'z'],
...     'count':  [  9,   3,   3,   1],
...     'points': [  1,   2,   2,  10],
... })
>>> t.last('letter')
'z'