You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/agnostic/pint.md
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -86,3 +86,13 @@ quantified.sel(
86
86
```
87
87
88
88
(`pint` considers values without units as "dimensionless")
89
+
90
+
### Numerical operations
91
+
92
+
We can also perform numerical operations, like integration:
93
+
94
+
```{python}
95
+
quantified["windspeed"].integrate("months")
96
+
```
97
+
98
+
Note how the units are displayed as `"meter * months / second"` and not the expected `"meter"`? This is caused by `pint` trying avoid implicit conversions as much as possible, which can substantially reduce the amount of computations.
0 commit comments