Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecationWarning with following pint_pandas.PintType.ureg.default_format = "P~" in documentation #251

Open
mutricyl opened this issue Oct 22, 2024 · 4 comments

Comments

@mutricyl
Copy link
Contributor

pint_pandas.PintType.ureg.default_format = "P~" usage stated in https://pint-pandas.readthedocs.io/en/latest/user/reading.html#pandas-dataframe-accessors induce deprecation warning from Pint.

What would be the proper method to avoid this warning ? (so that we can update the doc)

@mutricyl
Copy link
Contributor Author

mutricyl commented Oct 22, 2024

hum I could have think about it before asking... we should add .formatter :
pint_pandas.PintType.ureg.formatter.default_format = "P~"

@mutricyl
Copy link
Contributor Author

hum, source code is good @hgrecco could you update readthedocs ?

@andrewgsavage
Copy link
Collaborator

andrewgsavage commented Oct 22, 2024 via email

@mutricyl
Copy link
Contributor Author

it was already updated in #226 you just need to update readthedocs which is stuck at pint-pandas 0.6.dev16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants