allow to specify min_group_size in graphs that include grouping (e.g. using 'color', 'facet_row/col' etc.)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 18.8k
- Forks
- 2.8k
- Avg merge
- 16h 26m
- Merged PRs (30d)
- 21
Description
when using 'grouped' plots, we'd often like to see trends/differentations between separate groups.
however, it is common that some of the groups are very 'small', thus the data shown for them is confusing (and sometunes also distorts the rest of the plot, because the range can be very large).
i think allowing specification of min_group_size (Optional[int]) can be very beneficial, mitigating this issue, and eliminating the need of boilerplate code from the user side.
thank you for all your great work!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the grouped-plot paths that support color, facet_row, and facet_col, then inspect their existing tests and grouping behavior. Define how Optional[int] min_group_size should apply across these grouping options, including invalid or omitted values. Done means small groups are consistently excluded without requiring user-side filtering, with coverage for the supported grouping cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100