Skip to content

Commit

Permalink
fix(python): Update apply call in str_duration_ util. (pola-rs#16412
Browse files Browse the repository at this point in the history
)
  • Loading branch information
cmdlineluser authored and Wouittone committed Jun 22, 2024
1 parent fa1db45 commit 360d173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py-polars/polars/_utils/various.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def str_duration_(td: str | None) -> int | None:
elif tp == Duration:
cast_cols[c] = (
F.col(c)
.apply(str_duration_, return_dtype=Int64)
.map_elements(str_duration_, return_dtype=Int64)
.cast(Duration("ns"))
.cast(tp)
)
Expand Down

0 comments on commit 360d173

Please sign in to comment.