@@ -729,7 +729,7 @@ def get_bool_data(self, copy: bool = False) -> "BlockManager":
729
729
Whether to copy the blocks
730
730
"""
731
731
self ._consolidate_inplace ()
732
- return self .combine ([b for b in self .blocks if b .is_bool ], copy )
732
+ return self ._combine ([b for b in self .blocks if b .is_bool ], copy )
733
733
734
734
def get_numeric_data (self , copy : bool = False ) -> "BlockManager" :
735
735
"""
@@ -739,9 +739,9 @@ def get_numeric_data(self, copy: bool = False) -> "BlockManager":
739
739
Whether to copy the blocks
740
740
"""
741
741
self ._consolidate_inplace ()
742
- return self .combine ([b for b in self .blocks if b .is_numeric ], copy )
742
+ return self ._combine ([b for b in self .blocks if b .is_numeric ], copy )
743
743
744
- def combine (self , blocks : List [Block ], copy : bool = True ) -> "BlockManager" :
744
+ def _combine (self , blocks : List [Block ], copy : bool = True ) -> "BlockManager" :
745
745
""" return a new manager with the blocks """
746
746
if len (blocks ) == 0 :
747
747
return self .make_empty ()
@@ -896,7 +896,7 @@ def to_dict(self, copy: bool = True):
896
896
for b in self .blocks :
897
897
bd .setdefault (str (b .dtype ), []).append (b )
898
898
899
- return {dtype : self .combine (blocks , copy = copy ) for dtype , blocks in bd .items ()}
899
+ return {dtype : self ._combine (blocks , copy = copy ) for dtype , blocks in bd .items ()}
900
900
901
901
def fast_xs (self , loc : int ) -> ArrayLike :
902
902
"""
0 commit comments