From 13580c63c8109bd5a389f04cb2bae9bdbf36944e Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Thu, 22 Feb 2024 14:35:36 +0000 Subject: [PATCH] add debug assertion --- narwhals/pandas_like/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/narwhals/pandas_like/utils.py b/narwhals/pandas_like/utils.py index dbfcd8e16..243ac4aa9 100644 --- a/narwhals/pandas_like/utils.py +++ b/narwhals/pandas_like/utils.py @@ -201,6 +201,8 @@ def func(df: DataFrame | LazyFrame) -> list[Series]: out.append(_out) else: out.append(plx._create_series_from_scalar(_out, column)) + if expr._output_names is not None: + assert [s._series.name for s in out] == expr._output_names return out root_names = copy(expr._root_names)