mean function returns dimensionless quantities #2096
-
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 ureg = pint.UnitRegistry() print(statistics.mean(length))` |
Beta Was this translation helpful? Give feedback.
Answered by
andrewgsavage
Dec 15, 2024
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
Answer selected by
andrewgsavage
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the statistics doesn't have support for pint. you can use np.mean instead