Skip to content
forked from pydata/xarray

Commit

Permalink
better warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Dec 2, 2023
1 parent 62c334b commit 6d8e822
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xarray/core/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def _maybe_squeeze_indices(
if squeeze is None and warn:
emit_user_level_warning(
"The `squeeze` kwarg to GroupBy is being removed."
"Pass .groupby(..., squeeze=False) to silence this warning."
"Pass .groupby(..., squeeze=False) to disable squeezing,"
" which is the new default, and to silence this warning."
)
if isinstance(indices, slice):
assert indices.stop - indices.start == 1
Expand Down

0 comments on commit 6d8e822

Please sign in to comment.