torcharrow.DataFrame.tail¶
- DataFrame.tail(n=5)¶
Return the last n rows.
- Parameters:
n (int) – Number of rows to return.
See also
icolumn.head
Return the first n rows.
Examples
>>> import torcharrow as ta >>> df = ta.dataframe({'a': list(range(7)), >>> 'b': list(reversed(range(7))), >>> 'c': list(range(7)) >>> }) >>> df.tail(1) index a b c d ------- --- --- --- --- 0 6 0 6 105 dtype: Struct([Field('a', int64), Field('b', int64), Field('c', int64), Field('d', int64)]), count: 2, null_count: 0