Counting missing values
📖 Scenario: You work as a data analyst. You have a small table of sales data. Some values are missing because the data was not recorded properly.You want to find out how many missing values are in the data to understand its quality.
🎯 Goal: Create a pandas DataFrame with sales data including some missing values. Then count how many missing values are in each column.
📋 What You'll Learn
Use pandas to create a DataFrame
Include missing values using
None or numpy.nanCount missing values per column using pandas methods
Print the count of missing values
💡 Why This Matters
🌍 Real World
Data scientists often check for missing data to decide how to clean or fill it before analysis.
💼 Career
Counting missing values is a basic but essential skill for data cleaning in data analyst and data scientist roles.
Progress0 / 4 steps