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



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://w3resource.com/pandas/dataframe/dataframe-size.php