Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
How do I sort a pandas DataFrame or a Series?
Play lesson

Data analysis in Python with pandas - How do I sort a pandas DataFrame or a Series?

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

pandas allows you to sort a DataFrame by one of its columns (known as a "Series"), and also allows you to sort a Series alone. The sorting API changed in pandas version 0.17, so in this video, I'll demonstrate both the "old way" and the "new way" to sort. I'll also show you how to sort a DataFrame by multiple columns at once! 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 Changes to sorting API in pandas 0.17: http://pandas.pydata.org/pandas-docs/stable/whatsnew.html#changes-to-sorting-api DataFrame "sort_values" documentation: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.sort_values.html Series "sort_values" documentation: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.sort_values.html DataFrame "sort" documentation (deprecated): http://pandas.pydata.org/pandas-docs/version/0.17.0/generated/pandas.DataFrame.sort.html Series "order" documentation (deprecated): http://pandas.pydata.org/pandas-docs/version/0.17.0/generated/pandas.Series.order.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