rename one dataframe column python
#suppy as dict the column name to replace
df1 = df.rename(columns={'Name': 'EmpName'})
print(df1)
Are there any code examples left?
New code examples in category Python
#suppy as dict the column name to replace
df1 = df.rename(columns={'Name': 'EmpName'})
print(df1)