Load and Inspect the Data
Intermediate · Write the code · from Build an Automated Data Cleaning Pipeline
From the lesson: Step 1: Load the Messy Data
Every data cleaning project starts with loading the data and taking a first look. Our dataset is a customer list from a fictional online store. It has all the typical problems you'd see in real data pulled from a database or CSV export.
Read this part of the lessonCreate the messy DataFrame from the provided dictionary and print a summary showing:
1. The number of rows and columns
2. The count of missing values per column
Print the output in this exact format:
Rows: 10, Columns: 5
Missing values:
name 2
email 1
age 0
signup_date 1
purchase_total 1Note: The name column has one None value and one whitespace-only value " Eve Adams " is NOT missing (it has content). However, the None counts as 1 missing. Look at the data carefully.
More Data Cleaning Pipeline exercises
- Handle Missing ValuesIntermediate
- Remove DuplicatesIntermediate
- Fix Data TypesIntermediate
- Standardize Text FieldsIntermediate
- Handle OutliersIntermediate
- Predict the Pipeline OutputIntermediate
- The Complete PipelineIntermediate
All Python exercises · 50 practice problems · Practical Projects quiz