Data Manipulation
We wish to get the names of the columns of a Data Frame.
df.columns
Here is how this works:
Pandas data frames have a .columns attribute which returns the names of the data frame’s columns (as an Index).
.columns
Index