Skip to main content
HomePython

course

Reshaping Data with pandas

Intermediate
4+
25 reviews
Updated 12/2024
Reshape DataFrames from a wide to long format, stack and unstack rows and columns, and wrangle multi-index DataFrames.
Start course for free

Included for FreePremium or Teams

PythonData Manipulation4 hours15 videos52 exercises4,450 XP18,078Statement of Accomplishment

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
Group

Training 2 or more people?

Try DataCamp for Business

Loved by learners at thousands of companies

Course Description

Often data is in a human-readable format, but it’s not suitable for data analysis. This is where pandas can help—it’s a powerful tool for reshaping DataFrames into different formats. In this course, you’ll grow your data scientist and analyst skills as you learn how to wrangle string columns and nested data contained in a DataFrame. You’ll work with real-world data, including FIFA player ratings, book reviews, and churn analysis data, as you learn how to reshape a DataFrame from wide to long format, stack and unstack rows and columns, and get descriptive statistics of a multi-index DataFrame.

Prerequisites

Data Manipulation with pandas
1

Introduction to Data Reshaping

Start Chapter
2

Converting Between Wide and Long Format

Start Chapter
3

Stacking and Unstacking DataFrames

Start Chapter
4

Advanced Reshaping

Start Chapter
Reshaping Data with pandas
Course
Complete

Earn Statement of Accomplishment

Add this credential to your LinkedIn profile, resume, or CV
Share it on social media and in your performance review

Included withPremium or Teams

Enroll now

Don’t just take our word for it

*4
from 25 reviews
56%
12%
12%
16%
4%
  • Pascual S.
    3 months

    Excellent experience. I really learnt so much about Reshaping Data with Pandas.

  • Sean C.
    5 months

    I thought it was a very well taught course. Each successive chapter built on the previous chapter pretty well. I was able to solidify my understanding of the basics well at the beginning, and then was still challenged and learned a lot in the later chapters.

  • Noel C.
    5 months

    One of the best courses I have taken at DataCamp. Ten stars **********

  • Laura L.
    over 1 year

    good suggestion to refine background

  • Edwin A.
    over 1 year

    I recommend this course for those who want learn about reshaping data using pandas.

"Excellent experience. I really learnt so much about Reshaping Data with Pandas."

Pascual S.

"I thought it was a very well taught course. Each successive chapter built on the previous chapter pretty well. I was able to solidify my understanding of the basics well at the beginning, and then was still challenged and learned a lot in the later chapters."

Sean C.

"One of the best courses I have taken at DataCamp. Ten stars **********"

Noel C.

Join over 15 million learners and start Reshaping Data with pandas today!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.