MCPcopy Create free account
hub / github.com/Open-Quant/openquant / _estimate_df_bytes

Function _estimate_df_bytes

python/benchmarks/benchmark_data_processing.py:45–49  ·  view source on GitHub ↗
(df: pl.DataFrame)

Source from the content-addressed store, hash-verified

43
44
45def _estimate_df_bytes(df: pl.DataFrame) -> int:
46 if df.height == 0:
47 return 0
48 # Keep this cheap and deterministic for repeated benchmark runs.
49 return int(df.estimated_size())
50
51
52def _measure(

Callers 1

run_benchmarksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected