Skip to content

Commit

Permalink
add debug assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Feb 22, 2024
1 parent 65f8457 commit 13580c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions narwhals/pandas_like/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 13580c6

Please sign in to comment.