list all column names pandas code example Example: pandas dataframe column names print(data.columns.values)