MCPcopy Create free account
hub / github.com/Safiullah-Rahu/CSV-AI / smart_sample

Function smart_sample

app/data/sampling_impl.py:13–36  ·  view source on GitHub ↗

Return at most ``n`` rows from ``df`` using stratification if possible.

(
    df: pd.DataFrame,
    n: int = 200,
    *,
    random_state: int = 42,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

_stratifyFunction · 0.70

Tested by

no test coverage detected