@@ -678,7 +678,6 @@ class BaseGrouper:
678678 sort : bool, default True
679679 whether this grouper will give sorted result or not
680680 group_keys : bool, default True
681- mutated : bool, default False
682681 indexer : np.ndarray[np.intp], optional
683682 the indexer created by Grouper
684683 some groupers (TimeGrouper) will sort its axis and its
@@ -694,7 +693,6 @@ def __init__(
694693 groupings : Sequence [grouper .Grouping ],
695694 sort : bool = True ,
696695 group_keys : bool = True ,
697- mutated : bool = False ,
698696 indexer : npt .NDArray [np .intp ] | None = None ,
699697 dropna : bool = True ,
700698 ) -> None :
@@ -704,7 +702,6 @@ def __init__(
704702 self ._groupings : list [grouper .Grouping ] = list (groupings )
705703 self ._sort = sort
706704 self .group_keys = group_keys
707- self .mutated = mutated
708705 self .indexer = indexer
709706 self .dropna = dropna
710707
@@ -772,7 +769,7 @@ def group_keys_seq(self):
772769 def apply (
773770 self , f : Callable , data : DataFrame | Series , axis : AxisInt = 0
774771 ) -> tuple [list , bool ]:
775- mutated = self . mutated
772+ mutated = False
776773 splitter = self ._get_splitter (data , axis = axis )
777774 group_keys = self .group_keys_seq
778775 result_values = []
@@ -1061,7 +1058,6 @@ class BinGrouper(BaseGrouper):
10611058 ----------
10621059 bins : the split index of binlabels to group the item of axis
10631060 binlabels : the label list
1064- mutated : bool, default False
10651061 indexer : np.ndarray[np.intp]
10661062
10671063 Examples
@@ -1084,18 +1080,15 @@ class BinGrouper(BaseGrouper):
10841080
10851081 bins : npt .NDArray [np .int64 ]
10861082 binlabels : Index
1087- mutated : bool
10881083
10891084 def __init__ (
10901085 self ,
10911086 bins ,
10921087 binlabels ,
1093- mutated : bool = False ,
10941088 indexer = None ,
10951089 ) -> None :
10961090 self .bins = ensure_int64 (bins )
10971091 self .binlabels = ensure_index (binlabels )
1098- self .mutated = mutated
10991092 self .indexer = indexer
11001093
11011094 # These lengths must match, otherwise we could call agg_series
0 commit comments