diff --git a/xarray/core/dataarray.py b/xarray/core/dataarray.py index bd2781e8c76..7ea93efa6dc 100644 --- a/xarray/core/dataarray.py +++ b/xarray/core/dataarray.py @@ -6774,7 +6774,7 @@ def groupby( grouper: Grouper if group is not None: - if not groupers: + if groupers: raise ValueError( "Providing a combination of `group` and **groupers is not supported." )