polars.Series.tail#

Series.tail(n: int = 10) Series[source]#

Get the last n rows.

Parameters:
n

Number of rows to return.

Examples

>>> s = pl.Series("a", [1, 2, 3])
>>> s.tail(2)
shape: (2,)
Series: 'a' [i64]
[
        2
        3
]