Skip to content

Commit

Permalink
redo
Browse files Browse the repository at this point in the history
  • Loading branch information
deanm0000 committed Apr 2, 2024
1 parent 728bc7a commit 10d5a0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py-polars/tests/unit/dataframe/test_df.py
Original file line number Diff line number Diff line change
Expand Up @@ -3191,13 +3191,13 @@ class Event(NamedTuple):
name: str
description: str

def event_table(num: int) -> list[Event]:
def some_func(num: int) -> list[Event]:
return [Event("name", "desc") for _ in range(num)]

data = {"events": [0, 1, 2]}
df = pl.DataFrame(data).select(
events=pl.col("events").map_elements(
event_table,
some_func,
return_dtype=pl.List(
pl.Struct({"name": pl.String, "description": pl.String})
),
Expand Down

0 comments on commit 10d5a0d

Please sign in to comment.