12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- import numpy as np
- class IndexEngine:
- over_size_threshold: bool
- def __init__(self, vgetter, n: int): ...
- def __contains__(self, val: object) -> bool: ...
- # -> int | slice | np.ndarray[bool]
- def get_loc(self, val: object) -> int | slice | np.ndarray: ...
- def sizeof(self, deep: bool = False) -> int: ...
- def __sizeof__(self) -> int: ...
- @property
- def is_unique(self) -> bool: ...
- @property
- def is_monotonic_increasing(self) -> bool: ...
- @property
- def is_monotonic_decreasing(self) -> bool: ...
- def get_backfill_indexer(
- self, other: np.ndarray, limit: int | None = ...
- ) -> np.ndarray: ...
- def get_pad_indexer(
- self, other: np.ndarray, limit: int | None = ...
- ) -> np.ndarray: ...
- @property
- def is_mapping_populated(self) -> bool: ...
- def clear_mapping(self): ...
- def get_indexer(self, values: np.ndarray) -> np.ndarray: ... # np.ndarray[np.intp]
- def get_indexer_non_unique(
- self,
- targets: np.ndarray,
- ) -> tuple[
- np.ndarray, # np.ndarray[np.intp]
- np.ndarray, # np.ndarray[np.intp]
- ]: ...
- class Float64Engine(IndexEngine): ...
- class Float32Engine(IndexEngine): ...
- class Int64Engine(IndexEngine): ...
- class Int32Engine(IndexEngine): ...
- class Int16Engine(IndexEngine): ...
- class Int8Engine(IndexEngine): ...
- class UInt64Engine(IndexEngine): ...
- class UInt32Engine(IndexEngine): ...
- class UInt16Engine(IndexEngine): ...
- class UInt8Engine(IndexEngine): ...
- class ObjectEngine(IndexEngine): ...
- class DatetimeEngine(Int64Engine): ...
- class TimedeltaEngine(DatetimeEngine): ...
- class PeriodEngine(Int64Engine): ...
- class BaseMultiIndexCodesEngine:
- levels: list[np.ndarray]
- offsets: np.ndarray # ndarray[uint64_t, ndim=1]
- def __init__(
- self,
- levels: list[np.ndarray], # all entries hashable
- labels: list[np.ndarray], # all entries integer-dtyped
- offsets: np.ndarray, # np.ndarray[np.uint64, ndim=1]
- ): ...
- def get_indexer(
- self,
- target: np.ndarray, # np.ndarray[object]
- ) -> np.ndarray: ... # np.ndarray[np.intp]
- def _extract_level_codes(self, target: object): ...
- def get_indexer_with_fill(
- self,
- target: np.ndarray, # np.ndarray[object] of tuples
- values: np.ndarray, # np.ndarray[object] of tuples
- method: str,
- limit: int | None,
- ) -> np.ndarray: ... # np.ndarray[np.int64]
|