We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e9d494 commit c3fe02cCopy full SHA for c3fe02c
1 file changed
xarray/computation/nanops.py
@@ -31,7 +31,7 @@ def _maybe_null_out(result, axis, mask, min_count=1):
31
32
elif (dtype := getattr(result, "dtype", None)) and getattr(
33
dtype, "kind", None
34
- ) not in "mM":
+ ) not in ("m", "M"):
35
null_mask = mask.size - duck_array_ops.sum(mask)
36
result = where(null_mask < min_count, np.nan, result)
37
0 commit comments