change pandas column names 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']