diff --git a/flox/aggregate_flox.py b/flox/aggregate_flox.py index 4397c275..aecba2e3 100644 --- a/flox/aggregate_flox.py +++ b/flox/aggregate_flox.py @@ -192,7 +192,7 @@ def _np_grouped_op( if out is None: q = kwargs.get("q", None) k = kwargs.get("k", None) - if not q and not k: + if q is None and k is None: out = np.full(array.shape[:-1] + (size,), fill_value=fill_value, dtype=dtype) else: nq = len(np.atleast_1d(q)) if q is not None else abs(k)