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