Skip to content
C

Problem 1: Detect and Count Missing Values

Easypython

Problem Description

Write a Python program that takes a DataFrame and prints the number of missing values in each column.

Input

A DataFrame with some missing values.

Output

The count of missing values per column.

Constraints

  • The DataFrame will have at least one column with missing values.

Example Input

text
{"age": [25, None, 30], "salary": [50000, 60000, None]}

Example Output

text
age 1 salary 1 dtype: int64

Concepts Covered

isnull(), sum().

Input (stdin)

Output

Run your code to see output here...