---
id: summary_stats_py_datascience
name: summary_stats
kind: function
lang: py
domain: datascience
version: "1.0.0"
purity: pure
signature: "def summary_stats(values: list[float]) -> dict"
description: "Returns basic descriptive statistics (n, mean, median, p25, p75) for a list of floats. Empty input returns n=0 and nan for all numeric fields."
tags: [statistics, descriptive, eda, summary, percentile]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: ""
imports: [math, numpy]
example: |
  from summary_stats import summary_stats
  result = summary_stats([1, 2, 3, 4, 5])
tested: true
tests:
  - "test_summary_stats_basic"
  - "test_summary_stats_empty"
  - "test_summary_stats_single"
  - "test_summary_stats_keys"
test_file_path: "python/functions/datascience/tests/test_summary_stats.py"
file_path: "python/functions/datascience/summary_stats.py"
params:
  - name: values
    desc: "List of numeric values to summarize."
output: "Dict with n (int), mean, median, p25, p75 (floats). All floats are math.nan when values is empty."
source_repo: "internal:footprint_aurgi"
source_license: "internal-aurgi"
source_file: "ponderacion_isochronas/example/models/eda/utils.py:60"
---

Funcion pura minimal para EDA rapido. No incluye std, min, max ni otros percentiles — mantener la interfaz pequena.
