pandas.DataFrame.keys

DataFrame.keys(self)[source]

Get the ‘info axis’ (see Indexing for more).

This is index for Series, columns for DataFrame.

Returns
Index

Info axis.