* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
789 B
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: