CBSE 2026 results are out, Mukul scored a perfect 100/100 in Computer ScienceSee all toppers →

KwickClips Python · 43 sec · free

What does dropna() remove?

Short answer. Every row that has at least one missing value.

Why is the mean often a better fill than 0?

Zero wrongly suggests the student scored nothing.

Two tools

MethodWhat it does
dropna()removes rows
fillna(0)puts in 0
fillna(mean)puts average

Remember

dropna() removes gaps
fillna() fills them

Found missing values? You have two tools. Here are the two tools. Drop N A removes rows with gaps. Fill N A zero puts in zero. Fill N A with the mean puts in the average. Two rules. Drop N A removes gaps. Fill N A fills them.

This clip is from the full lesson: Handling Missing Values in Pandas — 7 minutes, with the tables, the quick answers and the whole lesson in text.

Useful for: CBSE Class 12 Artificial Intelligence (843)

More KwickClips from this lesson

Voice-over is AI-generated; the script is written and checked by Kajal Ma'am. Confirm anything you plan around against your official board document. We never ask for a password or an OTP.

Want a plan that actually fits your board dates?

Ask Kajal Ma'am directly, 20+ years teaching computer science. Free demo class first, no payment.

Talk to Kajal Ma'am on WhatsApp

Or see the Class 12 Computer Science course →

Studying outside India?

We coach CBSE, IGCSE & international students across the globe, one-to-one, in your local time zone.

Visit International →