rename first column in a dataframe code example
Example: rename one dataframe column python
#suppy as dict the column name to replace
df1 = df.rename(columns={'Name': 'EmpName'})
print(df1)
#suppy as dict the column name to replace
df1 = df.rename(columns={'Name': 'EmpName'})
print(df1)