Add column metadata panel with stats#27
Merged
kdkavanagh merged 5 commits intomasterfrom Mar 26, 2026
Merged
Conversation
Splits the row detail pane into two vertically stacked sections: - Top: existing row detail (unchanged behavior) - Bottom: new column metadata panel showing statistics for the column at cursor position (five-number summary for numeric, top-10 value counts for categorical, min/max for temporal, value counts for boolean) Stats are lazily computed and cached per column, invalidated on filter. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Set RowDetail height to 1fr so ColumnMetadata is visible within the DetailPanel instead of being pushed off-screen - Sort categorical value_counts deterministically by count then name - Add integration tests that verify actual stats content is displayed (numeric five-number summary, categorical value counts, boolean counts) - Add test asserting ColumnMetadata is within the visible viewport - Update all snapshots to reflect the now-visible column metadata panel Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
DetailPanel.update_width() sets the panel width to the max of RowDetail and ColumnMetadata content widths, ensuring both children are always the same width. Both RowDetail and ColumnMetadata trigger update_width() on their parent after content changes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- All column types now report null count when nulls are present - Numeric float columns report NaN count when NaNs are present - Null reporting moved from _boolean_stats to compute_column_stats so it applies uniformly to categorical, numeric, temporal, boolean Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use @work(exclusive=True) to compute stats in a worker thread, avoiding blocking the main UI thread. Shows "Computing..." while stats are being calculated, then renders results on completion. Cache hits still return synchronously for instant updates. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DetailPanelcontainerrtoggle (row detail)Test plan
make checkpasses (format, lint, typecheck — 10/10 pylint)🤖 Generated with Claude Code