Please note, this is a STATIC archive of website www.w3resource.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
w3resource

Pandas DataFrame property: size

DataFrame - size property

The size property is used to get an int representing the number of elements in this object.

Return the number of rows if Series. Otherwise return the number of rows times number of columns if DataFrame.

Syntax:

DataFrame.size

Example:


Download the Pandas DataFrame Notebooks from here.

Previous: DataFrame - ndim property
Next: DataFrame - shape property