Skip to content

Commit 3c45180

Browse files
committed
Remove unused _replace_nan function
1 parent 0f22fc0 commit 3c45180

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

xarray/core/nanops.py

-9
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,6 @@
88
from .duck_array_ops import count, fillna, isnull, sum_where, where, where_method
99

1010

11-
def _replace_nan(a, val):
12-
"""
13-
replace nan in a by val, and returns the replaced array and the nan
14-
position
15-
"""
16-
mask = isnull(a)
17-
return where_method(val, mask, a), mask
18-
19-
2011
def _maybe_null_out(result, axis, mask, min_count=1):
2112
"""
2213
xarray version of pandas.core.nanops._maybe_null_out

0 commit comments

Comments
 (0)