You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
xorq stats: numeric histogram leaves out empty buckets, so gaps in the data disappear #1087
_numeric_histogram (xorq_stats_v2.py:261) groups rows by bucket index and makes one bar per returned row (line 305), so a bucket with no rows has no bar. The chart draws the bars side by side, so a gap in the data disappears: values from 0 to 10 and from 90 to 100 draw three adjacent bars, 0–10, 10–20 and 90–100. Pandas and polars always draw ten buckets, with 0 for the empty ones.
Probe script for this issue. Save it as probe_1087.py in a buckaroo checkout and run uv run python probe_1087.py. The output below is from main at e88ace9. Each case prints the histogram from pandas (pd), polars (pl) and xorq (xo): the bar kinds, the sum of the population bars, the sum of the categorical bars and the NA bar, then each bar as name:kind=value, and below that the histogram_bins range, min, max, nan_per and distinct_count.
Activity
paddymul commentedon Oct 7, 2026
Probe script for this issue. Save it as
probe_1087.pyin a buckaroo checkout and runuv run python probe_1087.py. The output below is from main at e88ace9. Each case prints the histogram from pandas (pd), polars (pl) and xorq (xo): the bar kinds, the sum of thepopulationbars, the sum of the categorical bars and the NA bar, then each bar asname:kind=value, and below that thehistogram_binsrange,min,max,nan_peranddistinct_count.probe_1087.py
Output at e88ace9