Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Sep 10, 2024
1 parent 3e1dad2 commit ead068c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py-polars/polars/_utils/construction/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -1221,13 +1221,13 @@ def broadcastable_s(s: Series, name: str) -> Expr:
if len(dictionary_cols) > 0:
df = wrap_df(pydf)
df = df.with_columns(
[broadcastable_s(s, name) for s in dictionary_cols.values()]
[broadcastable_s(s, s.name) for s in dictionary_cols.values()]
)
reset_order = True

if len(struct_cols) > 0:
df = wrap_df(pydf)
df = df.with_columns([broadcastable_s(s, name) for s in struct_cols.values()])
df = df.with_columns([broadcastable_s(s, s.name) for s in struct_cols.values()])
reset_order = True

if reset_order:
Expand Down

0 comments on commit ead068c

Please sign in to comment.