All courses
· intermediate

Cleaning and Reshaping Data with pandas

Real data arrives broken. Missing values, wrong types, duplicates, inconsistent text and dates that are strings. Fix each deliberately, then reshape the result into whatever a report needs.

Pathaxis · Original content

Written in house, from the work rather than from a syllabus. Every example is one we would use ourselves, and every exercise is checked against the same engine that grades your answer.

87 min 6 lessons 20 quiz questions 6 exercisesStart course

What you’ll learn

  • Quantify missing data and choose between dropping and filling
  • Fix dtypes, including numbers that arrived as text
  • Find duplicates at the level that matters, not just exact copies
  • Standardise inconsistent text and parse dates safely
  • Reshape between long and wide with pivot and melt
  • Write a cleaning pipeline that reports what it changed

Before you start

  • · Data Analysis with pandas
  • · Exploratory Analysis in SQL is a useful companion but not required

Syllabus

01

Fixing values

Missing data, types and duplicates.

02

Fixing text and dates

The two columns that are always messy.

03

Reshaping and reporting

Long against wide, and a pipeline you can trust.