abstractqqq / polars_ds_extension

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

Syntax Warning when importing #120

Closed matquant14 closed 2 months ago

matquant14 commented 2 months ago

Just installed latest version and when I import the library, I get:

import polars as pl
import polars_ds as pds

SyntaxWarning: invalid escape sequence '\d' expr = expr.str.extract_all("(\d*\.?\d+)")

Looks to be occuring in the str2,py module, on line 91. If i alter the code to


expr = expr.str.extract_all(r"(\d*\.?\d+)")

It seems to remove that warning.

abstractqqq commented 2 months ago

It has been fixed by another user like you! Will be in the next release!

abstractqqq commented 2 months ago

Btw, a huge update is coming which includes a lot of syntax changes that benefit end user experience, and linters can now recognize what's in the package.

This will likely be released either today or tomorrow.

matquant14 commented 2 months ago

Thanks. Looking forward to see what's new...