From 6d8e822440705df0d4fda6dcb3243eb1f03a4fd7 Mon Sep 17 00:00:00 2001 From: Deepak Cherian Date: Fri, 1 Dec 2023 20:46:21 -0700 Subject: [PATCH] better warning --- xarray/core/groupby.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xarray/core/groupby.py b/xarray/core/groupby.py index 3ac47e1c4d6..0301a62f44e 100644 --- a/xarray/core/groupby.py +++ b/xarray/core/groupby.py @@ -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