get names of all columns in dataframe python code example Example: pandas dataframe column names print(data.columns.values)