Learn

In the previous lesson, you learned what a DataFrame is and how to select subsets of data from one.

In this lesson, you’ll learn how to modify an existing DataFrame. Some of the skills you’ll learn include:

  • Adding columns to a DataFrame
  • Using lambda functions to calculate complex quantities
  • Renaming columns

Instructions

Examine the Pandas code displayed to the right in a Jupyter Notebook. For now, don’t worry about understanding every line. These are just some examples of what you’ll be able to do by the end of this lesson!

When you’re ready, continue to the next exercise!

Sign up to start coding

By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.
Already have an account?