Skip to content

LazyFrame.head

head

head(n: int = 10) -> LazyFrame

Retrieve the first n rows of the relation.

Parameters:

Name Type Description Default
n int

Number of rows to retrieve. Defaults to 10.

10

Returns:

Name Type Description
LazyFrame LazyFrame

A new LazyFrame containing the first n rows.