NumPy allowed · plain Python earns 10 bonus points
Computed matrix × vector transformation
Impute missing values across numerical and categorical features in tabular records using Pandas.
Implement impute_missing_values(records, num_strategy, cat_strategy). For numeric columns with missing values, fill with the column mean or median (rounded to 2 decimal places). For non-numeric columns, fill with the mode or string fallback.
impute_missing_values(records: list[dict], num_strategy: str = 'mean', cat_strategy: str = 'mode') -> list[dict]