Files
fn_registry/python/functions/datascience/histogram.md
T
egutierrez 47fac22230 chore: auto-commit (799 archivos)
- .claude/CLAUDE.md
- .claude/commands/subagentes.md
- .claude/rules/INDEX.md
- .mcp.json
- bash/functions/cybersecurity/analyze_dns.md
- bash/functions/cybersecurity/audit_http_headers.md
- bash/functions/cybersecurity/audit_ssh_config.md
- bash/functions/cybersecurity/check_firewall.md
- bash/functions/cybersecurity/detect_suspicious_users.md
- bash/functions/cybersecurity/encrypt_file.md
- ...

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

1.0 KiB

name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, 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 params output tested tests test_file_path file_path
histogram function py datascience 1.0.0 pure def histogram(data: list, buckets: int) -> list Calcula histograma con N buckets. Retorna lista de conteos por bucket.
statistics
histogram
python
pendiente-usar
false
name desc
data lista de valores numericos para agrupar en buckets
name desc
buckets numero de buckets a crear (ej: 5, 10, 100). Mayor = histograma mas detallado.
lista de conteos con len(resultado) == buckets, cada elemento es el numero de valores en ese bucket false
python/functions/datascience/datascience.py

Ejemplo

histogram([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 5)
# [2, 2, 2, 2, 2]

Notas

Los buckets cubren el rango [min, max] uniformemente. El ultimo bucket incluye el valor maximo. Si todos los valores son iguales, todos caen en el primer bucket.