Replies: 1 comment
-
the statistics doesn't have support for pint. you can use np.mean instead |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I calculate the mean of a quantity (such as multiple length measurements), a dimensionless value is returned. Shouldn't it have units? Or am I missing something?
`import numpy as np
import pint
ureg = pint.UnitRegistry()
length = np.array([1, 2, 3]) * ureg('in')
print(statistics.mean(length))`
Beta Was this translation helpful? Give feedback.
All reactions