Skip to content

Use shuffle in groupby binary ops. - #9896

Draft
dcherian wants to merge 6 commits into
pydata:mainfrom
dcherian:groupby-binary-op-shuffle
Draft

dcherian wants to merge 6 commits into
pydata:mainfrom
dcherian:groupby-binary-op-shuffle

Conversation

@dcherian

Copy link
Copy Markdown
Contributor

xref #9546
Closes #9267

  • Closes #xxxx
  • Tests added
  • User visible changes (including notable bug fixes) are documented in whats-new.rst
  • New functions/methods are listed in api.rst

Comment thread xarray/core/groupby.py Outdated
idxr[slicer].ravel().tolist() for slicer in slices_from_chunks(core_dim_chunks)
]
shuffled = dask.array.shuffle(
array, flat_indices, axis=da.get_axis_num(dim), chunks="auto"

@dcherian dcherian Dec 16, 2024 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@phofl here it would be useful to pass chunks={da.get_axis_num(k): v for k, v in da.chunksizes.items() if k != dim}

This branch has not been deployed

No deployments
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.

Subtracting datasets in xarray 2024.6.0 leads to inconsistent chunks

1 participant