Skip to content

Commit 53c5634

Browse files
dcherianmax-sixty
andauthored
Fully deprecate squeeze kwarg to groupby (#9280)
* Fully deprecate squeeze kwarg to groupby Closes #9279 Closes #1460 Closes #2157 * Fix doctests * Update xarray/core/groupby.py Co-authored-by: Maximilian Roos <[email protected]> * Fix whats-new * Update doc/whats-new.rst --------- Co-authored-by: Maximilian Roos <[email protected]>
1 parent 0023e5d commit 53c5634

10 files changed

+146
-591
lines changed

doc/whats-new.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ Breaking changes
4949
``origin`` or ``offset`` parameters is recommended as a replacement for using
5050
the ``base`` parameter and using time offset arithmetic is recommended as a
5151
replacement for using the ``loffset`` parameter.
52-
53-
54-
Deprecations
55-
~~~~~~~~~~~~
52+
- The ``squeeze`` kwarg to ``groupby`` is completely deprecated. This has been the source of some quite confusing
53+
behaviour and has been deprecated since v2024.01.0. `groupby`` behavior is now always consistent
54+
with the existing ``.groupby(..., squeeze=False)`` behavior.
55+
By `Deepak Cherian <https://github.com/dcherian>`_. (:pull:`9280`)
5656

5757

5858
Bug fixes

0 commit comments

Comments
 (0)