x = x.with_columns(pl.col(col).apply(transform))
/home/vincent/repos/pymarginaleffects/marginaleffects/transform.py:13: PolarsInefficientMapWarning:
Expr.map_elements is significantly slower than the native expressions API.
Only use if you absolutely CANNOT implement your logic otherwise.
Replace this expression...
- pl.col("conf_low").map_elements(transform)
with this one instead:
+ pl.col("conf_low").exp()
x = x.with_columns(pl.col(col).apply(transform))
/home/vincent/repos/pymarginaleffects/marginaleffects/transform.py:13: PolarsInefficientMapWarning:
Expr.map_elements is significantly slower than the native expressions API.
Only use if you absolutely CANNOT implement your logic otherwise.
Replace this expression...
- pl.col("conf_high").map_elements(transform)
with this one instead:
+ pl.col("conf_high").exp()
x = x.with_columns(pl.col(col).apply(transform))
Raises warning: