{ "arguments": { "data": { "type_value": "Array", "description": "Data to be clamped." }, "lower": { "type_value": "Array", "default_python": "None", "default_rust": "None", "description": "Desired lower bound for each column of the data. Used only if `categories` is `None`." }, "upper": { "type_value": "Array", "default_python": "None", "default_rust": "None", "description": "Desired upper bound for each column of the data. Used only if `categories` is `None`." }, "categories": { "type_value": "Jagged", "default_python": "None", "default_rust": "None", "description": "The set of categories you want to be represented for each column of the data." }, "null_value": { "type_value": "Array", "default_python": "None", "default_rust": "None", "description": "The value to which elements not included in `categories` will be mapped for each column of the data. Used only if `categories` is not `None`." } }, "id": "Clamp", "name": "clamp", "options": {}, "return": { "type_value": "Array", "description": "Clamped data." }, "description": "Clamps data to the provided bounds.\n\nIf data are numeric, clamping maps elements outside of an interval `[lower, upper]` to the closer endpoint.\nIf data are categorical, clamping maps elements outside of the `categories` argument to the associated `null`.\nUsing clamp sets the `categories` property for the analysis with value `categories` plus `null_value` in the last position.", "proto_id": 5 }