pymargins.drop_outliers¶
- pymargins.drop_outliers(rule)¶
Create a
drop_outlierspipeline stage.Drops rows that satisfy the user-supplied rule. Under bootstrap the rule is re-applied to every resample, capturing detection variability.
- Parameters:
rule (callable) –
rule(frame) -> boolean Seriesorrule(frame) -> boolean mask. Rows where the rule is True are dropped.- Returns:
A stage with
alters_rows=Trueandrequires_resampling=False.- Return type:
Stage