diff --git a/ibis/backends/pandas/executor.py b/ibis/backends/pandas/executor.py index a3153d17b8b47..38f80e82c8cc5 100644 --- a/ibis/backends/pandas/executor.py +++ b/ibis/backends/pandas/executor.py @@ -623,7 +623,7 @@ def visit(cls, op: ops.DropColumns, parent, columns_to_drop): @classmethod def visit(cls, op: PandasAggregate, parent, groups, metrics): if groups: - parent = parent.groupby([col.name for col in groups.values()]) + parent = parent.groupby([col.name for col in groups.values()], dropna=False) metrics = {k: parent.apply(v) for k, v in metrics.items()} result = cls.concat(metrics, axis=1).reset_index() renames = {v.name: k for k, v in op.groups.items()}