EduFlow
Python for Data Analysis

Checkpoint: Cleaning Real Data

Five questions on this section. Answer all of them, then see your score and why each answer is right or wrong.

Question 1 of 5

A quantity column loads as float64 and shows values like 1.0 and 2.0. What explains it, and what keeps the column as whole numbers?

Question 2 of 5

pd.to_numeric(cleaned, errors="coerce") produced 12 new NaN values. What should you do next?

Question 3 of 5

What does pd.to_datetime(["03/04/2025", "15/04/2025"], format="%d/%m/%Y") return?

Question 4 of 5

Your cleaning function removes duplicates first and strips spaces from names afterwards. What can go wrong?

Question 5 of 5

After df["country"] = df["country"].str.title(), nunique() still reports 9 countries instead of 8. What is the most likely cause?

5 questions unanswered