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 in Python by Tina
168 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 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 in Python by Taj
• 1,040 points
34 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 in Python by Esha
135 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 in Python by Waseem
• 4,230 points
18 views
0 votes
1 answer

How can I reformat value_counts() analysis in Pandas for large number of columns?

If I were you, I'd do it ...READ MORE

answered Apr 17, 2018 in Python by anonymous
1,906 views
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 in Python by Kirti
25 views
0 votes
1 answer

Round columns in pandas dataframe

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

answered Jul 4 in Python by SDeb
• 13,160 points
22 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,350 points
4,814 views