MCPcopy
hub / github.com/pydata/xarray / count_not_none

Function count_not_none

xarray/compat/pdcompat.py:45–50  ·  view source on GitHub ↗

Compute the number of non-None arguments. Copied from pandas.core.common.count_not_none (not part of the public API)

(*args)

Source from the content-addressed store, hash-verified

43
44
45def count_not_none(*args) -> int:
46 """Compute the number of non-None arguments.
47
48 Copied from pandas.core.common.count_not_none (not part of the public API)
49 """
50 return sum(arg is not None for arg in args)
51
52
53class _NoDefault(Enum):

Callers 2

_cftime_rangeFunction · 0.90
_get_alphaFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…