Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
45
def
_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
52
def
_measure(
Callers
1
run_benchmarks
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected