Learn

Congratulations! We’ve covered a lot in this lesson, including

  • sorting DataFrames by columns and index
  • selecting rows from DataFrames using labels and position
  • comparing variable values using Python comparison operators
  • creating Boolean masks using pandas and comparison operators
  • combining comparisons using Boolean operators
  • filtering a DataFrame using a Boolean mask

We’ve loaded a notebook with additional exercises to the right. When you’re ready to move on, select Up Next!

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?