pandas.DataFrame.keys
pandas 3.1.1 · DataFrame · method
Get the DataFrame's column labels.
Call syntax
DataFrame.keys()Run the example
Edit the example and select Run Python to see the result.
Parameters
This call takes no arguments.
Returns
Index