How to sort in Pandas

preview_player
Показать описание
How can you sort your data in Pandas? Actually, Pandas gives you a bunch of great options. In this video, I show you how to sort both series and data frames by index and by values -- including by multiple columns in a data frame.

Рекомендации по теме
Комментарии
Автор

Thanks, Reuven, at the end, was column b expected to be sorted in descending order? shouldn't 70 should be at the top of column b

aanagpurkar
Автор

Love your videos, Reuven
please share some tips on how can I compare two csv files. Their row order may be jumbled but we could ignore that.
Again, many thanks for awesome videos

ratulr
Автор

In a data-frame with 200+ rows and 20 columns, I have 30 identical names in column 3. How to sort this 30 values by column in such a way, to be printed in the first 30 index positions? Is there a parameter to sort by name? Ascending/descending is not working in this case, to many other names are above and below this 30 target names, if number of rows is big, is difficult to find positions of target values. Thank you, great tutorial!

samogo