File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ from typing import (
2+ Iterator ,
3+ Sequence ,
4+ overload ,
5+ )
6+
7+ import numpy as np
8+
9+ from pandas ._typing import ArrayLike
10+
11+ def slice_len (slc : slice , objlen : int = ...) -> int : ...
12+
13+
14+ def get_blkno_indexers (
15+ blknos : np .ndarray , # int64_t[:]
16+ group : bool = ...,
17+ ) -> list [tuple [int , slice | np .ndarray ]]: ...
18+
19+
20+ def get_blkno_placements (
21+ blknos : np .ndarray ,
22+ group : bool = ...,
23+ ) -> Iterator [tuple [int , BlockPlacement ]]: ...
24+
25+
26+ class BlockPlacement :
27+ def __init__ (self , val : int | slice | np .ndarray ): ...
28+
29+ @property
30+ def indexer (self ) -> np .ndarray | slice : ...
31+
32+ @property
33+ def as_array (self ) -> np .ndarray : ...
34+
35+ @property
36+ def is_slice_like (self ) -> bool : ...
37+
38+ @overload
39+ def __getitem__ (self , loc : slice | Sequence [int ]) -> BlockPlacement : ...
40+
41+ @overload
42+ def __getitem__ (self , loc : int ) -> int : ...
43+
44+ def __iter__ (self ) -> Iterator [int ]: ...
45+
46+ def __len__ (self ) -> int : ...
47+
48+ def delete (self , loc ) -> BlockPlacement : ...
49+
50+ def append (self , others : list [BlockPlacement ]) -> BlockPlacement : ...
51+
52+
53+ class Block :
54+ _mgr_locs : BlockPlacement
55+ ndim : int
56+ values : ArrayLike
57+
58+ def __init__ (self , values : ArrayLike , placement : BlockPlacement , ndim : int ): ...
You can’t perform that action at this time.
0 commit comments