Answers for "python pandas change column names"

3

python: change column name

df = df.rename(columns = {'myvar':'myvar_new'})
Posted by: Guest on July-16-2020
0

rename pandas columns with list of new names

df.columns = list_of_names
Posted by: Guest on November-23-2020

Code answers related to "python pandas change column names"

Python Answers by Framework

Browse Popular Code Answers by Language