From 8b2734d6d4941842bcd1ecad34d5a6a9d7d5896f Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Tue, 19 Mar 2024 21:34:06 +0000 Subject: [PATCH] modin can use fastpath too --- narwhals/pandas_like/group_by.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/narwhals/pandas_like/group_by.py b/narwhals/pandas_like/group_by.py index fcc67a245..9253683e2 100644 --- a/narwhals/pandas_like/group_by.py +++ b/narwhals/pandas_like/group_by.py @@ -58,7 +58,9 @@ def agg( raise ValueError(msg) output_names.extend(expr._output_names) - if implementation == "pandas" and not os.environ.get("NARWHALS_FORCE_GENERIC"): + if implementation in ("pandas", "modin") and not os.environ.get( + "NARWHALS_FORCE_GENERIC" + ): return agg_pandas( grouped, exprs,