feat: prql namespace for polars.DataFrame and polars.LazyFrame#373
feat: prql namespace for polars.DataFrame and polars.LazyFrame#373
prql namespace for polars.DataFrame and polars.LazyFrame#373Conversation
prql sub name space for polars.DataFrame and polars.LazyFrameprql sub namespace for polars.DataFrame and polars.LazyFrame
prql sub namespace for polars.DataFrame and polars.LazyFrameprql namespace for polars.DataFrame and polars.LazyFrame
max-sixty
left a comment
There was a problem hiding this comment.
Looks cool!
No objection to starting this as an optional dependency. We can then promote it if it turns out to be used lots. (I had a bit more objection in #374 to making everything optional).
Another option is to detect whether polars is installed in pyprql.__init__ and add the namespace without having to import pyprql.polars_namespace — depends on the polars norms.
That seems like a good idea, but I don't know if it is good practice to do that here. |
For sure
It would be something like this in the |
Close #371