polars.LazyFrame.head¶
- LazyFrame.head(n: int = 5) polars.internals.lazy_frame.LDF ¶
Gets the first n rows of the DataFrame. You probably don’t want to use this!
Consider using the fetch operation. The fetch operation will truly load the first n rows lazily.
This operation instead loads all the rows and only applies the head at the end.
- Parameters
- n
Number of rows.