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/