pola-rs / pyo3-polars

Plugins/extension for Polars
MIT License
232 stars 38 forks source link

feat: support kwargs for field functions #62

Closed ritchie46 closed 6 months ago

ritchie46 commented 6 months ago

closes #58

We cannot introspect the passed function so we must give it a new name. You must pass:

#[polars_expr(output_type_func_with_kwargs=<function_name>)]

Upstream changes; https://github.com/pola-rs/polars/pull/13944

ion-elgreco commented 6 months ago

@ritchie46 👀ooh nice