captest.filters.BooleanFlag
- class captest.filters.BooleanFlag(*, column, invert, custom_name, name)
Remove intervals where a boolean/flag column is truthy.
columnvalues are coerced withastype(bool)so 0/1, real booleans, and NaN (which is truthy) are handled uniformly. By default rows where the column is truthy are removed; setinvert=Trueto instead remove rows where the column is falsy (keeping only the truthy rows).- __init__(**params)
Methods
__init__(**params)from_config(config)Build an instance from a
to_config()dict.run(capdata)Execute the step, record runtime state, and append self to filters.
to_config()Serialize this step to a config dict (every param, defaults included; the param-system
nameis omitted).Attributes
args_reprRender the step's params for the summary.
columncustom_nameexplanationHuman-readable description of the step's effect (read after run()).
invertnameparam