polars.Expr.take_every#
- Expr.take_every(n: int, offset: int = 0) Self [source]#
Take every nth value in the Series and return as a new Series.
Deprecated since version 0.19.14: This method has been renamed to
gather_every()
.- Parameters:
- n
Gather every n-th row.
- offset
Starting index.