pola-rs / pyo3-polars

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

Don't autoregister extensions #65

Closed MarcoGorelli closed 6 months ago

MarcoGorelli commented 6 months ago

xref https://github.com/pola-rs/polars/issues/13899

Things I love:

Things I don't love:


This doesn't remove any functionality. The only difference is that if you want the expressions extension, you need to do

import expression_lib.extension  # noqa: F401

to activate it.

Otherwise, you will just have to use the functions directly, e.g.

    dist.jaccard_similarity("dist_a", "dist_b")

instead of

    pl.col("dist_a").dist.jaccard_similarity("dist_b")
ritchie46 commented 6 months ago

I understand. Though I want to be ambivalent about it. Let's show both. :)

MarcoGorelli commented 6 months ago

sure thing - I'm now showing both in both run.py and README.md