code wiki / _hdl_build / nx_dataframe.nx

nx_dataframe.nx

buildroot/runtime/_hdl_build/nx_dataframe.nx

6940 B185 linesdepth 2pulls 2 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 1 imports · 6 importers

nx_syscalls.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.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

12func df_count(col: *i64, n: i64) -> i64 { return n }
called by 1: main
14func df_sum(col: *i64, n: i64) -> i64
21func df_min(col: *i64, n: i64) -> i64
called by 2: ad_profilemain
29func df_max(col: *i64, n: i64) -> i64
called by 2: ad_profilemain
38func df_mean(col: *i64, n: i64, out_rem: *i64) -> i64
46func df_mean_milli(col: *i64, n: i64) -> i64
called by 1: main calls 1: df_sum
54func df_var_milli(col: *i64, n: i64) -> i64
called by 2: ad_profilemain calls 1: df_sum
69func df_isqrt(v: i64) -> i64
79func df_filter_count(col: *i64, n: i64, op: i64, thr: i64) -> i64
called by 2: ad_profilemain
97func df_filter_sum(col: *i64, n: i64, op: i64, thr: i64) -> i64
called by 1: main
116func df_quantile(col: *i64, n: i64, q_permil: i64) -> i64
called by 3: ad_profilemainmain calls 1: sys_mmap
142func 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
167func 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