Skip to content

CLN: remove unused filter_empty from BinGrouper #41296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions pandas/core/groupby/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,6 @@ class BinGrouper(BaseGrouper):
----------
bins : the split index of binlabels to group the item of axis
binlabels : the label list
filter_empty : bool, default False
mutated : bool, default False
indexer : np.ndarray[np.intp]

Expand All @@ -1069,17 +1068,20 @@ class BinGrouper(BaseGrouper):

"""

bins: np.ndarray # np.ndarray[np.int64]
binlabels: Index
mutated: bool

def __init__(
self,
bins,
binlabels,
filter_empty: bool = False,
mutated: bool = False,
indexer=None,
):
self.bins = ensure_int64(bins)
self.binlabels = ensure_index(binlabels)
self._filter_empty_groups = filter_empty
self._filter_empty_groups = False
self.mutated = mutated
self.indexer = indexer

Expand Down