polars.LazyFrame.limit

LazyFrame.limit(n: int = 5) polars.internals.lazy_frame.LDF

Limit the DataFrame to the first n rows. Note if you don’t want the rows to be scanned, use the fetch operation.

Parameters
n

Number of rows.