polars.DataFrame.height#

property DataFrame.height: int[source]#

Get the number of rows.

Returns:
int

Examples

>>> df = pl.DataFrame({"foo": [1, 2, 3, 4, 5]})
>>> df.height
5