95959f713c
Agrega funciones Python reutilizables organizadas por dominio: - core: composicion funcional (pipe, compose, map, filter, reduce, etc.) - cybersecurity: analisis de amenazas y puertos - datascience: estadisticas y deteccion de outliers - finance: indicadores tecnicos y analisis financiero
605 B
605 B
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, tested, tests, test_file_path, file_path
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | tested | tests | test_file_path | file_path | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| clip | function | py | datascience | 1.0.0 | pure | def clip(data: list, lo: float, hi: float) -> list | Recorta los valores de la lista al rango [lo, hi]. |
|
false | false | python/functions/datascience/datascience.py |
Ejemplo
clip([1, 5, 10, -3], 0, 7)
# [1, 5, 7, 0]
Notas
Funcion pura sin dependencias. Equivalente a numpy.clip pero sin numpy.