@@ -729,7 +729,7 @@ def get_bool_data(self, copy: bool = False) -> "BlockManager":
729729 Whether to copy the blocks
730730 """
731731 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 )
733733
734734 def get_numeric_data (self , copy : bool = False ) -> "BlockManager" :
735735 """
@@ -739,9 +739,9 @@ def get_numeric_data(self, copy: bool = False) -> "BlockManager":
739739 Whether to copy the blocks
740740 """
741741 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 )
743743
744- def combine (self , blocks : List [Block ], copy : bool = True ) -> "BlockManager" :
744+ def _combine (self , blocks : List [Block ], copy : bool = True ) -> "BlockManager" :
745745 """ return a new manager with the blocks """
746746 if len (blocks ) == 0 :
747747 return self .make_empty ()
@@ -896,7 +896,7 @@ def to_dict(self, copy: bool = True):
896896 for b in self .blocks :
897897 bd .setdefault (str (b .dtype ), []).append (b )
898898
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 ()}
900900
901901 def fast_xs (self , loc : int ) -> ArrayLike :
902902 """
0 commit comments