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