Answers for "modify column names in pandas"

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

Python Answers by Framework

Browse Popular Code Answers by Language