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

Method _get_res_multi

xarray/core/accessor_str.py:2078–2084  ·  view source on GitHub ↗
(val, pat)

Source from the content-addressed store, hash-verified

2076 return res
2077
2078 def _get_res_multi(val, pat):
2079 match = pat.search(val)
2080 if match is None:
2081 return np.array([""], val.dtype)
2082 match = match.groups()
2083 match = [grp if grp is not None else "" for grp in match]
2084 return np.array(match, val.dtype)
2085
2086 if dim is None:
2087 return self._apply(func=_get_res_single, func_args=(pat,))

Callers

nothing calls this directly

Calls 1

groupsMethod · 0.45

Tested by

no test coverage detected