DataImputer.impute_outliersΒΆ

DataImputer.impute_outliers(df, outliers_percentile=0.05, inplace=False, progress_callback=None)

Impute outlier values in a DataFrame that are determined by a percentile threshold.

Parameters
  • df (pd.DataFrame) – The data in which to impute values.

  • outliers_percentile (float, optional) – The percentile threshold for classifying outliers. All values outside of these percentiles are considered outliers and will be imputed. Defaults to 0.05.

  • inplace (bool, optional) – If True, modifies the given dataframe in place. Defaults to False.

Return type

DataFrame

Returns

The DataFrame with outliers imputed.