Pandas Dataframe Sorting
Pandas Dataframe Sorting Data Science Project
Intro to Pandas for Data Analysis

Pandas Dataframe Sorting

In this project you'll learn how to perform different sorting operations in DataFrames. Sorting per values (that is, per column or multiple columns) and sorting per index. You'll also learn about the `inplace` parameter and the potential dangers of modifying/mutating data in place.
Start this project
Pandas Dataframe SortingPandas Dataframe Sorting
Project Created by

Santiago Basulto

Project Activities

All our Data Science projects include bite-sized activities to test your knowledge and practice in an environment with constant feedback.

All our activities include solutions with explanations on how they work and why we chose them.

codevalidated

Sort the dataframe by Revenue in descending order

Sort the df dataframe by Revenue in descending order. This should be an immutable operation and you should store your results in the variable df_rev_desc.

codevalidated

Sort by Sector (asc) and Revenue (desc)

Sort the df dataframe by Sector in ascending order and by Revenue in descending order. This should be an immutable operation and you should store your results in the variable df_sect_rev.

Pandas Dataframe SortingPandas Dataframe Sorting
Project Created by

Santiago Basulto

This project is part of

Intro to Pandas for Data Analysis

Explore other projects