pandas.DataFrame.axes

DataFrame.axes

Return a list with the row axis labels and column axis labels as the only members. They are returned in that order.