feat(polars): default pinned_rows include ?filtered_histogram#830
Merged
Conversation
Adds an optional ``?filtered_histogram`` pinned row to polars's default styling. The ``?`` prefix (#777) means JS hides the row when no column has the ``filtered_histogram`` key in ``merged_sd``, so a no-filter widget keeps a one-line ``[dtype, histogram]`` header. When the user runs a search, ``filtered_histogram`` gets layered onto each column's merged_sd entry (#785) and the row renders. Polars-only on purpose: - xorq skips computing ``filtered_histogram`` entirely (this PR's ``skip_stats_by_scope``), so the optional row never appears. - Pandas keeps the original ``[dtype, histogram]`` default. New ``pinned_filtered_histogram()`` helper in ``styling_helpers``, mirroring the existing ``pinned_histogram()``. New ``PolarsMainStyling(DefaultMainStyling)`` in ``polars_buckaroo`` overrides ``pinned_rows`` and replaces ``DefaultMainStyling`` in ``local_analysis_klasses``. Config-only — no behavior tests, just a new default in the styling pipeline. The optional-pinned-row plumbing (#777) is already exercised by ``gridUtils.test.ts``. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
📦 TestPyPI package publishedpip install --index-strategy unsafe-best-match --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ buckaroo==0.14.3.dev26252871907or with uv: uv pip install --index-strategy unsafe-best-match --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ buckaroo==0.14.3.dev26252871907MCP server for Claude Codeclaude mcp add buckaroo-table -- uvx --from "buckaroo[mcp]==0.14.3.dev26252871907" --index-strategy unsafe-best-match --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ buckaroo-table📖 Docs preview🎨 Storybook preview |
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
Adds an optional
?filtered_histogrampinned row to polars's default styling. The?prefix (#777) means JS hides the row when no column has thefiltered_histogramkey inmerged_sd, so a no-filter widget keeps a one-line[dtype, histogram]header. When the user runs a search,filtered_histogramgets layered onto each column's entry inmerged_sd(#785) and the row renders.Polars-only on purpose:
filtered_histogramentirely (feat(dataflow): skip_stats_by_scope — per-scope stat skiplist; xorq skips histogram on filt+clean #829), so the optional row never appears there.[dtype, histogram]default.Changes
pinned_filtered_histogram()helper instyling_helpers, mirroring the existingpinned_histogram().PolarsMainStyling(DefaultMainStyling)inpolars_buckaroooverridespinned_rowsto[dtype, histogram, ?filtered_histogram]and replacesDefaultMainStylinginlocal_analysis_klasses.Test plan
Config-only — no behavior tests. The optional-pinned-row plumbing (#777) is already exercised by
gridUtils.test.ts(isOptionalPinnedKey+stripOptionalPinnedKey). Manually verified in JupyterLab that the row appears when a search is active and is hidden otherwise.🤖 Generated with Claude Code