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

Print output when ufunc like np.abs is executed on pint array #241

Closed
m-rossi opened this issue Jul 11, 2024 · 0 comments · Fixed by #242
Closed

Print output when ufunc like np.abs is executed on pint array #241

m-rossi opened this issue Jul 11, 2024 · 0 comments · Fixed by #242

Comments

@m-rossi
Copy link
Contributor

m-rossi commented Jul 11, 2024

The following code should have no output

import numpy as np
import pandas as pd
import pint_pandas


s = pd.Series([0, 1, 2], dtype='pint[m]')
r = np.abs(s)

however you have

(<Quantity([0 1 2], 'meter')>,)

as an output.

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

Successfully merging a pull request may close this issue.

1 participant