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

Method contains

xarray/coding/cftimeindex.py:455–457  ·  view source on GitHub ↗

Needed for .loc based partial-string indexing

(self, key: Any)

Source from the content-addressed store, hash-verified

453 return False
454
455 def contains(self, key: Any) -> bool:
456 """Needed for .loc based partial-string indexing"""
457 return self.__contains__(key)
458
459 def shift( # type: ignore[override,unused-ignore]
460 self,

Callers 3

test_containsFunction · 0.45
test_contains_broadcastFunction · 0.45
test_empty_str_methodsFunction · 0.45

Calls 1

__contains__Method · 0.95

Tested by 3

test_containsFunction · 0.36
test_contains_broadcastFunction · 0.36
test_empty_str_methodsFunction · 0.36