polars.LazyFrame.take_every#

LazyFrame.take_every(n: int, offset: int = 0) Self[source]#

Take every nth row in the LazyFrame and return as a new LazyFrame.

Deprecated since version 0.19.0: This method has been renamed to gather_every().

Parameters:
n

Gather every n-th row.

offset

Starting index.