Replace Missing
Replace missing values in column/columns with the mean, median, mode, or a value
Parameters
Name
Type
Description
Is Optional
replacements
imputation_dict
Dictionary with keys as column names to replace missing values for, and dictionary values the type of replacement strategy ('mean', 'median', 'mode', )
flag_missing_vals
boolean
Use True to create an indicator column for when a value was replaced. This column will be named like '<col_name>_missing_flag'.
True
Example
Source Code
Last updated