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

Function isna

xarray/core/duck_array_ops.py:158–170  ·  view source on GitHub ↗

Checks if data is literally np.nan or pd.NA. Parameters ---------- data Any python object Returns ------- Whether or not the data is np.nan or pd.NA

(data: Any)

Source from the content-addressed store, hash-verified

156
157
158def isna(data: Any) -> bool:
159 """Checks if data is literally np.nan or pd.NA.
160
161 Parameters
162 ----------
163 data
164 Any python object
165
166 Returns
167 -------
168 Whether or not the data is np.nan or pd.NA
169 """
170 return data is pd.NA or data is np.nan # noqa: PLW0177
171
172
173def isnull(data):

Callers 1

isnullFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…