w3resource

Pandas DataFrame property: shape

DataFrame - shape property

The shape property is used to get a tuple representing the dimensionality of the DataFrame.

Syntax:

DataFrame.shape

Example:


Download the Pandas DataFrame Notebooks from here.

Previous: DataFrame - size property
Next: DataFrame - memory_usage() function



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-shape.php