polars.Series.limit#

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

Get the first n elements.

Alias for Series.head().

Parameters:
n

Number of elements to return. If a negative value is passed, return all elements except the last abs(n).

See also

head