Sorting data frames in pandas

How to sort data frames quickly and efficiently

Magdalena Konkiewicz
Towards Data Science
4 min readOct 16, 2019

--

Many beginner data scientists try to sort their data frames by writing complicated functions. This is not the most efficient or easiest way to do it. Do not reinvent the wheel and use sort_values() function provided by pandas package. Let’s have a look at the real-life example and how to use sort_values() function in your code.

--

--