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

Previous: DataFrame - values property
Next: DataFrame - ndim property