hgrecco / pint-pandas

Pandas support for pint
Other
169 stars 42 forks source link

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

Closed m-rossi closed 1 month ago

m-rossi commented 1 month ago

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.