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 above Notebook from here.

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