Skip to content

Commit 46714a8

Browse files
authored
CLN: remove unused filter_empty from BinGrouper (#41296)
1 parent efef264 commit 46714a8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pandas/core/groupby/ops.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,6 @@ class BinGrouper(BaseGrouper):
10471047
----------
10481048
bins : the split index of binlabels to group the item of axis
10491049
binlabels : the label list
1050-
filter_empty : bool, default False
10511050
mutated : bool, default False
10521051
indexer : np.ndarray[np.intp]
10531052
@@ -1069,17 +1068,20 @@ class BinGrouper(BaseGrouper):
10691068
10701069
"""
10711070

1071+
bins: np.ndarray # np.ndarray[np.int64]
1072+
binlabels: Index
1073+
mutated: bool
1074+
10721075
def __init__(
10731076
self,
10741077
bins,
10751078
binlabels,
1076-
filter_empty: bool = False,
10771079
mutated: bool = False,
10781080
indexer=None,
10791081
):
10801082
self.bins = ensure_int64(bins)
10811083
self.binlabels = ensure_index(binlabels)
1082-
self._filter_empty_groups = filter_empty
1084+
self._filter_empty_groups = False
10831085
self.mutated = mutated
10841086
self.indexer = indexer
10851087

0 commit comments

Comments
 (0)