Clip
Base classes
| Name |
Children |
Inherits |
SeriesOp datacook.engine.ops.series A `ColumnOp` that is one call per column, declared like `CallOp`. |
|
|
⋔ Inheritance diagram
graph TD
2098828523["values.Clip"]
2451904138["series.SeriesOp"]
124287307["series.ColumnOp"]
1539482213["base.Op"]
2751680898["builtins.object"]
2451904138 --> 2098828523
124287307 --> 2451904138
1539482213 --> 124287307
2751680898 --> 1539482213
🛈 DocStrings
Bases: SeriesOp
Source code in src/datacook/engine/ops/values.py
| class Clip(series.SeriesOp):
id = "clip"
title = _("Clip values")
description = _(
"Limit numbers to a range: values below the lower bound become the lower bound,"
" values above the upper bound become the upper bound."
)
category = categories.GENERAL
icon = "mdi.arrow-collapse-vertical"
method = "clip"
frame_call = True
class Params(base.Params):
columns: list[str] = Field(
title=N_("Columns"), min_length=1, json_schema_extra={"widget": "columns"}
)
lower: float | None = Field(None, title=N_("Lower bound"))
upper: float | None = Field(None, title=N_("Upper bound"))
|
:fa-brands-github: Show source on GitHub