code wiki / _hdl_build / nx_dataframe.nx

nx_dataframe.nx

buildroot/runtime/_hdl_build/nx_dataframe.nx

6847 B180 linesdepth 2pulls 4 transitivereach 30 importersview sourcekind librarytopic dataframe
docsdependenciesstructsconstsfunctions

about

nx_dataframe.nx -- LIB: the AGGREGATION FRONT DOOR the analytics stack was missing (operator 2026-07-10: "our data engineer and analytics is toy level"). The audit found real PRIMITIVES (sketches, columnar, seg_store) but NO numeric aggregation, NO GROUP BY, NO value predicate scan -- you hand-rolled everything. This is the first rung: a general INTEGER-EXACT columnar aggregation engine over an i64 column (or two parallel key/value columns). 100%-integer -> BIT-REPRODUCIBLE aggregates (the sovereign determinism exceed; pandas/DuckDB float sums are order-dependent, these are not). Seeds: aggregation-frontend, descriptive- stats-general, value-range-scan, and GROUP BY (dataframe-ops). Approximate distinct/quantile at scale = the next rung (wire nx_sketch_hll / nx_sketch_tdigest behind this same front door). license_tier: ORIGINAL

dependencies 2 imports · 6 importers

nx_syscalls.nx nx_vecmath.nx nx_dataframe.nx nx_analyst_data.nx nx_analyst_multi.nx nx_dataframe_approx.nx nx_dataframe_gate.nx nx_query.nx nx_timeseries.nx

imports: nx_syscalls.nxnx_vecmath.nx

imported by: nx_analyst_data.nxnx_analyst_multi.nxnx_dataframe_approx.nxnx_dataframe_gate.nxnx_query.nxnx_timeseries.nx

structs

none

consts

none

functions

13func df_count(col: *i64, n: i64) -> i64 { return n }
called by 1: main
15func df_sum(col: *i64, n: i64) -> i64
22func df_min(col: *i64, n: i64) -> i64
called by 2: ad_profilemain
30func df_max(col: *i64, n: i64) -> i64
called by 2: ad_profilemain
39func df_mean(col: *i64, n: i64, out_rem: *i64) -> i64
47func df_mean_milli(col: *i64, n: i64) -> i64
called by 1: main calls 1: df_sum
55func df_var_milli(col: *i64, n: i64) -> i64
called by 2: ad_profilemain calls 1: df_sum
70func df_isqrt(v: i64) -> i64 { return vm_isqrt(v) }
74func df_filter_count(col: *i64, n: i64, op: i64, thr: i64) -> i64
called by 2: ad_profilemain
92func df_filter_sum(col: *i64, n: i64, op: i64, thr: i64) -> i64
called by 1: main
111func df_quantile(col: *i64, n: i64, q_permil: i64) -> i64
called by 3: ad_profilemainmain calls 1: sys_mmap
137func df_groupby(keys: *i64, vals: *i64, n: i64, agg_kind: i64, out_keys: *i64, out_agg: *i64, max_groups: i64) -> i64
called by 1: main
162func df_inner_join(lkeys: *i64, lvals: *i64, ln: i64, rkeys: *i64, rvals: *i64, rn: i64, out_l: *i64, out_r: *i64, max_out: i64) -> i64
called by 1: main