polars.internals.series.ListNameSpace.tail

ListNameSpace.tail(n: int = 5) polars.internals.series.Series

Slice the tail of every sublist

Parameters
n

How many values to take in the slice.

Examples

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