DataFrame.head

DataFrame head(size_t n = 10)

The first n rows.

Parameters

nhow many rows to take (default 10)

Returns

slice(0, min(n, height)).