pandas set column names to dataframe code example
Example 1: df change column names
df.rename(columns={"A": "a", "B": "b", "C": "c"},
errors="raise", inplace=True)
Example 2: pandas dataframe column names
print(data.columns.values)
df.rename(columns={"A": "a", "B": "b", "C": "c"},
errors="raise", inplace=True)
print(data.columns.values)