File tree 2 files changed +0
-24
lines changed
2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change 18
18
BlockManager ,
19
19
SingleBlockManager ,
20
20
create_block_manager_from_arrays ,
21
- create_block_manager_from_blocks ,
22
21
)
23
22
24
23
__all__ = [
40
39
"concatenate_block_managers" ,
41
40
# those two are preserved here for downstream compatibility (GH-33892)
42
41
"create_block_manager_from_arrays" ,
43
- "create_block_manager_from_blocks" ,
44
42
]
Original file line number Diff line number Diff line change @@ -1633,28 +1633,6 @@ def fast_xs(self, loc):
1633
1633
# Constructor Helpers
1634
1634
1635
1635
1636
- def create_block_manager_from_blocks (blocks , axes : List [Index ]) -> BlockManager :
1637
- if len (blocks ) == 1 and not isinstance (blocks [0 ], Block ):
1638
- # if blocks[0] is of length 0, return empty blocks
1639
- if not len (blocks [0 ]):
1640
- blocks = []
1641
- else :
1642
- # It's OK if a single block is passed as values, its placement
1643
- # is basically "all items", but if there're many, don't bother
1644
- # converting, it's an error anyway.
1645
- return create_block_manager_from_array (blocks [0 ], axes )
1646
-
1647
- try :
1648
- mgr = BlockManager (blocks , axes )
1649
- mgr ._consolidate_inplace ()
1650
- return mgr
1651
-
1652
- except ValueError as e :
1653
- blocks = [getattr (b , "values" , b ) for b in blocks ]
1654
- tot_items = sum (b .shape [0 ] for b in blocks )
1655
- raise construction_error (tot_items , blocks [0 ].shape [1 :], axes , e )
1656
-
1657
-
1658
1636
def create_block_manager_from_arrays (
1659
1637
arrays , names : Index , axes : List [Index ]
1660
1638
) -> BlockManager :
You can’t perform that action at this time.
0 commit comments