Files
developer-roadmap/roadmaps/python-data-analysis/content/dropping-vs-imputing@xIS0cJ8ui0siBoZJr3-B_.md
T
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

789 B

Dropping vs. Imputing

When handling missing values, dropping removes rows or columns with dropna(), while imputing fills them with a substitute value using fillna() or SimpleImputer from Scikit-learn. Dropping is appropriate when missing data is rare or random. Imputing is preferred when data is valuable or missing systematically, using the mean, median, mode, or a predicted value.

Visit the following resources to learn more: