df = pd.read_csv('some-dir-to-csv')
df.rename(columns={'<old col name>':'<new col name>'}, inplace=True)
inplace=True
- Whether to return a new DataFrame. If True then value of copy is ignored.
df = pd.read_csv('some-dir-to-csv')
df.rename(columns={'<old col name>':'<new col name>'}, inplace=True)
inplace=True
- Whether to return a new DataFrame. If True then value of copy is ignored.