From 0170195e576d21908d94c69a2ca7ee4ccc04f851 Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Sat, 16 Mar 2024 16:07:11 +0000 Subject: [PATCH] fixup flattening --- narwhals/pandas_like/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/narwhals/pandas_like/utils.py b/narwhals/pandas_like/utils.py index 14e8f2f61..bf7ffd1bb 100644 --- a/narwhals/pandas_like/utils.py +++ b/narwhals/pandas_like/utils.py @@ -127,9 +127,7 @@ def evaluate_into_exprs( """Evaluate each expr into Series.""" series: list[PandasSeries] = [ item - for sublist in [ - evaluate_into_expr(df, into_expr) for into_expr in flatten(*exprs) - ] + for sublist in [evaluate_into_expr(df, into_expr) for into_expr in flatten(exprs)] for item in sublist ] for name, expr in named_exprs.items():