Skip to content

fix: col_summary_tbl() boolean error - #466

Merged
rich-iannone merged 2 commits into
mainfrom
fix-col-summary-tbl-boolean-error
Oct 15, 2026
Merged

rich-iannone merged 2 commits into
mainfrom
fix-col-summary-tbl-boolean-error

Conversation

@rich-iannone

Copy link
Copy Markdown
Member

This PR fixes how boolean value summaries are calculated and displayed in tabular reports. The fix involves a more reliable and direct computation of True/False counts for boolean columns, which no longer errors in the case of all True values down a column. The tests are expanded to cover various edge cases, including missing values and different backends.

Fixes: #465

@DG47

DG47 commented Oct 15, 2026

Copy link
Copy Markdown

Thanks for the quick fix! I ran the cases from #465 against this branch (all-True, all-False, one-row, True plus missing, and the two multi-column cases, on Polars, Pandas and DuckDB). All of them now get the right T/F summary, including b in the two multi-column examples.

@rich-iannone
rich-iannone merged commit eb2411d into main Oct 15, 2026
10 checks passed
@rich-iannone
rich-iannone deleted the fix-col-summary-tbl-boolean-error branch October 15, 2026 15:11

This branch was successfully deployed

1 active deployment
pr-466 — 6792aab7 Deployed Oct 15, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

col_summary_tbl() fails with a ShapeError when a boolean column has no False values

2 participants