pandas change name of single in code example
Example 1: pandas rename specific column
df.rename(columns={'old_name': 'new_name'}, inplace=True)
Example 2: rename df column
import pandas as pd
data = pd.read_csv(file)
data.rename(columns={'original':'new_name'}, inplace=True)