Sorting Data in Python With pandas (Overview)
Learning pandas sort methods is a great way to start with or practice doing basic data analysis using Python. Most commonly, data analysis is done with spreadsheets, SQL, or pandas. One of the great things about using pandas is that it can handle a large amount of data and offers highly performant data manipulation capabilities.
In this video course, you’ll learn how to use .sort_values()
and .sort_index()
, which will enable you to sort data efficiently in a DataFrame.
By the end of this video course, you’ll know how to:
- Sort a pandas DataFrame by the values of one or more columns
- Use the
ascending
parameter to change the sort order - Sort a DataFrame by its
index
using.sort_index()
- Organize missing data while sorting values
- Sort a DataFrame in-place using
inplace
set toTrue
For more information on concepts covered in this lesson, you can check out The pandas DataFrame: Working With Data Efficiently.
00:00 Pandas Sort: Your Guide to Sorting Data in Python. Learning pandas sort methods is a great way to start with or practice doing basic data analysis using Python.
00:13 Most commonly, data analysis is done with spreadsheets, SQL, or pandas. One of the great things about using pandas is that it can handle a large amount of data and offers highly performant data-manipulation capabilities.
00:29
In this video course, you’ll learn how to use .sort_values()
and .sort_index()
, which will enable you to sort data efficiently in a DataFrame.
00:39
By the end of this course, you’ll know how to sort a pandas DataFrame by the values of one or more columns, use the ascending
parameter to change the sort order, sort a DataFrame by its index using .sort_index()
, organize missing data while sorting values, and sort a DataFrame in-place using inplace
set to True
.
01:03 To follow along with this course, you’ll need a basic understanding of pandas DataFrames, which you can get from this Real Python course.
01:12 So now you know what will be covered, let’s get started.
Become a Member to join the conversation.