Files
fn_registry/python/functions/datascience/clip.md
T
egutierrez 212875ed0d chore: auto-commit (286 archivos)
- .claude/agents/fn-orquestador/SKILL.md
- .claude/commands/fn_claude.md
- .claude/rules/INDEX.md
- .claude/rules/cpp_apps.md
- .claude/rules/ids_naming.md
- CHANGELOG.md
- apps/dag_engine/README.md
- apps/dag_engine/api.go
- apps/dag_engine/dags_migrated/example.yaml
- apps/dag_engine/dags_migrated/example_lineage_tracking.yaml
- ...

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 16:33:22 +02:00

41 lines
995 B
Markdown

---
name: clip
kind: function
lang: py
domain: datascience
version: "1.0.0"
purity: pure
signature: "def clip(data: list, lo: float, hi: float) -> list"
description: "Recorta los valores de la lista al rango [lo, hi]."
tags: [clipping, bounds, python, pendiente-usar, transformer]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: ""
imports: []
params:
- name: data
desc: "lista de valores numericos a recortar"
- name: lo
desc: "limite inferior (minimo permitido). Valores menores seran reemplazados por lo."
- name: hi
desc: "limite superior (maximo permitido). Valores mayores seran reemplazados por hi."
output: "lista de valores con todos los elementos recortados al rango [lo, hi]"
tested: false
tests: []
test_file_path: ""
file_path: "python/functions/datascience/datascience.py"
---
## Ejemplo
```python
clip([1, 5, 10, -3], 0, 7)
# [1, 5, 7, 0]
```
## Notas
Funcion pura sin dependencias. Equivalente a numpy.clip pero sin numpy.