w3resource

Pandas DataFrame property: axes

DataFrame - axes property

The axes property returns a list representing the axes of the DataFrame.

It has the row axis labels and column axis labels as the only members. They are returned in that order.

Syntax:

DataFrame.axes

Example:


Download the Pandas DataFrame Notebooks from here.

Previous: DataFrame - values property
Next: DataFrame - ndim 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-axes.php