puthon pandas rename columns code example
Example 1: dataframe change column names
#Pandas for Python
df.coloumns = ['A','B']
Example 2: change column names pandas
df.columns = ['A','B']
#Pandas for Python
df.coloumns = ['A','B']
df.columns = ['A','B']