xarray-contrib / xarray-contrib/flox
support expected_groups=int
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 137
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
We could support unknown groups in the xarray interface if the user provides a size for "expected groups". The returned xarray object will have an unindexed "groups" coordinate and a dask array for "group_labels" non-dimensional coordinate.
As long as the provided size > total number of discovered groups, this should work OK.
Contributor guide
No contributing guide indexed for this repository
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 locating the xarray interface and any existing handling for expected groups or group labels. Check how the returned object represents the unindexed groups coordinate and dask-backed group_labels, then verify the behavior when expected_groups exceeds the number of discovered groups.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100