@@ -944,23 +944,6 @@ def _cumcount_array(self, ascending=True):
944944 rev [sorter ] = np .arange (count , dtype = np .intp )
945945 return out [rev ].astype (np .int64 , copy = False )
946946
947- def _index_with_as_index (self , b ):
948- """
949- Take boolean mask of index to be returned from apply, if as_index=True
950-
951- """
952- # TODO perf, it feels like this should already be somewhere...
953- from itertools import chain
954- original = self ._selected_obj .index
955- gp = self .grouper
956- levels = chain ((gp .levels [i ][gp .labels [i ][b ]]
957- for i in range (len (gp .groupings ))),
958- (original ._get_level_values (i )[b ]
959- for i in range (original .nlevels )))
960- new = MultiIndex .from_arrays (list (levels ))
961- new .names = gp .names + original .names
962- return new
963-
964947 def _try_cast (self , result , obj , numeric_only = False ):
965948 """
966949 try to cast the result to our obj original type,
@@ -2295,18 +2278,6 @@ def size(self):
22952278 index = self .result_index ,
22962279 dtype = 'int64' )
22972280
2298- @cache_readonly
2299- def _max_groupsize (self ):
2300- """
2301- Compute size of largest group
2302- """
2303- # For many items in each group this is much faster than
2304- # self.size().max(), in worst case marginally slower
2305- if self .indices :
2306- return max (len (v ) for v in self .indices .values ())
2307- else :
2308- return 0
2309-
23102281 @cache_readonly
23112282 def groups (self ):
23122283 """ dict {group name -> group labels} """
@@ -2941,9 +2912,6 @@ def __init__(self, index, grouper=None, obj=None, name=None, level=None,
29412912 if isinstance (grouper , MultiIndex ):
29422913 self .grouper = grouper .values
29432914
2944- # pre-computed
2945- self ._should_compress = True
2946-
29472915 # we have a single grouper which may be a myriad of things,
29482916 # some of which are dependent on the passing in level
29492917
@@ -4964,10 +4932,6 @@ def _wrap_aggregated_output(self, output, names=None):
49644932 raise com .AbstractMethodError (self )
49654933
49664934
4967- class NDArrayGroupBy (GroupBy ):
4968- pass
4969-
4970-
49714935# ----------------------------------------------------------------------
49724936# Splitting / application
49734937
@@ -5020,10 +4984,6 @@ def apply(self, f):
50204984 raise com .AbstractMethodError (self )
50214985
50224986
5023- class ArraySplitter (DataSplitter ):
5024- pass
5025-
5026-
50274987class SeriesSplitter (DataSplitter ):
50284988
50294989 def _chop (self , sdata , slice_obj ):
0 commit comments