You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently experimenting with the expression plugins and, in particular, I'd like to implement a function
to_dummies(categories: list[str])
that turns a single column into a struct with the fields provided in categories.
Unfortunately, one cannot currently define the output_type of a polars_expr based on the kwargs passed to the function but only based on the input dtypes.
Rust macros are not my strong suite, unfortunately, so I can't really judge if this is feasible at all 👀
The text was updated successfully, but these errors were encountered:
Nice, thanks for the hint @Shoeboxam! Seems like this could, indeed, fix the issue, I'll investigate ;) in any case, it was only introduced in #62, i.e. after this issue 😜
I'm currently experimenting with the expression plugins and, in particular, I'd like to implement a function
that turns a single column into a struct with the fields provided in
categories
.Unfortunately, one cannot currently define the
output_type
of apolars_expr
based on the kwargs passed to the function but only based on the input dtypes.Rust macros are not my strong suite, unfortunately, so I can't really judge if this is feasible at all 👀
The text was updated successfully, but these errors were encountered: