MCPcopy
hub / github.com/pandas-dev/pandas / _engine

Method _engine

pandas/core/indexes/interval.py:449–455  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

447 # "Union[IndexEngine, ExtensionEngine]" in supertype "Index"
448 @cache_readonly
449 def _engine(self) -> IntervalTree: # type: ignore[override]
450 # IntervalTree does not supports numpy array unless they are 64 bit
451 left = self._maybe_convert_i8(self.left)
452 left = maybe_upcast_numeric_to_64bit(left)
453 right = self._maybe_convert_i8(self.right)
454 right = maybe_upcast_numeric_to_64bit(right)
455 return IntervalTree(left, right, closed=self.closed)
456
457 def __contains__(self, key: Any) -> bool:
458 """

Callers

nothing calls this directly

Calls 2

_maybe_convert_i8Method · 0.95

Tested by

no test coverage detected