abstractqqq / polars_ds_extension

Polars extension for general data science use cases
MIT License
263 stars 17 forks source link

no str2 #138

Closed willros closed 2 months ago

willros commented 2 months ago

Using the latest polars-ds version I get the following error

AttributeError: 'Expr' object has no attribute 'str2'. Did you mean: 'str'?

Any ideas? Thanks for a great project!

Using:

polars==0.20.22
polars_ds==0.4.2

MacOS, M1 Sonoma

William

abstractqqq commented 2 months ago

In latest releases, I have replaced the old pl.col('c').str2.method_call() by a new method that linters can catch.

You can see more at: https://github.com/abstractqqq/polars_ds_extension/releases/tag/v0.4.0

All strings methods here can now be called from pds if you import polars_ds as pds: https://github.com/abstractqqq/polars_ds_extension/blob/main/python/polars_ds/str2.py

willros commented 2 months ago

Thanks,

Sorry for missing that.

William