Renaming multiple columns in pandas dataframe

0 votes
Hi. Please help me rename some name of my pandas dataframe. How can I change multiple column name?
Apr 3, 2019 in Python by Tina
1,304 views

1 answer to this question.

0 votes
Please refer to the below code to do it:

new_data = data.rename(columns = {"Team": "Team Name",

                                  "College":"Education",

                                  "Salary": "Income"})
answered Apr 3, 2019 by Raj

Related Questions In Python

0 votes
1 answer

How to convert multiple columns to string in pandas dataframe?

Hi, To convert multiple columns to string, include a list of ...READ MORE

answered Jul 18, 2019 in Python by Taj
• 1,060 points
9,274 views
0 votes
1 answer

How to add multiple columns to pandas dataframe in one assignment?

Hello @kartik, You could use assign with a dict of ...READ MORE

answered Jun 15 in Python by Niroj
• 34,050 points
149 views
0 votes
1 answer

Pandas dataframe with multiple lists in Python

You can do it like this import pandas ...READ MORE

answered Apr 5, 2019 in Python by Esha
486 views
0 votes
0 answers

how do sort the columns in a dataframe using the pandas?

can you give an example using dataframe? READ MORE

May 6, 2019 in Python by Waseem
• 4,530 points
73 views
0 votes
1 answer
0 votes
1 answer

How to parse html file to BeautifulSoup?

Hey. Refer to the following code: driver.get("link") html = ...READ MORE

answered Apr 2, 2019 in Python by Kirti
417 views
0 votes
1 answer
0 votes
1 answer

Round columns in pandas dataframe

You can now, use round on dataframe The code will ...READ MORE

answered Jul 4, 2019 in Python by SDeb
• 13,250 points
612 views
+2 votes
2 answers

How can I replace values with 'none' in a dataframe using pandas

Actually in later versions of pandas this ...READ MORE

answered Aug 13, 2018 in Python by bug_seeker
• 15,390 points
19,491 views