Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
How do I rename columns in a pandas DataFrame?
Play lesson

Data analysis in Python with pandas - How do I rename columns in a pandas DataFrame?

5.0 (3)
29 learners

What you'll learn

This course includes

  • 11.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

You will often want to rename the columns of a DataFrame so that their names are descriptive, easy to type, and don't contain any spaces. In this video, I'll demonstrate three different strategies for renaming columns so that you can choose the best strategy to fit your particular situation. SUBSCRIBE to learn data science with Python: https://www.youtube.com/dataschool?sub_confirmation=1 JOIN the "Data School Insiders" community and receive exclusive rewards: https://www.patreon.com/dataschool == RESOURCES == GitHub repository for the series: https://github.com/justmarkham/pandas-videos "rename" documentation: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.rename.html "read_csv" documentation: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_csv.html "str.replace" documentation: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.str.replace.html == LET'S CONNECT! == Newsletter: https://www.dataschool.io/subscribe/ Twitter: https://twitter.com/justmarkham Facebook: https://www.facebook.com/DataScienceSchool/ LinkedIn: https://www.linkedin.com/in/justmarkham/

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere