MCPcopy Index your code
hub / github.com/pydata/xarray / where_method

Function where_method

xarray/core/duck_array_ops.py:422–425  ·  view source on GitHub ↗
(data, cond, other=dtypes.NA)

Source from the content-addressed store, hash-verified

420
421
422def where_method(data, cond, other=dtypes.NA):
423 if other is dtypes.NA:
424 other = dtypes.get_fill_value(data.dtype)
425 return where(cond, data, other)
426
427
428def fillna(data, other):

Callers 3

_nan_minmax_objectFunction · 0.90
_nanmean_ddof_objectFunction · 0.90
sum_whereFunction · 0.70

Calls 1

whereFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…