Skip to content

Commit

Permalink
Better bikeshed
Browse files Browse the repository at this point in the history
  • Loading branch information
rhshadrach committed Feb 4, 2024
1 parent 8f592ad commit a05ff18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/core/groupby/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,8 @@ def result_index_and_ids(self) -> tuple[Index, npt.NDArray[np.intp]]:
# Combine unobserved and observed parts
names = self.names
codes = [ping.codes for ping in self.groupings]
ob_indices = [k for k, e in enumerate(obs) if e]
unob_indices = [k for k, e in enumerate(obs) if not e]
ob_indices = [idx for idx, ob in enumerate(obs) if ob]
unob_indices = [idx for idx, ob in enumerate(obs) if not ob]
ob_index, ob_ids = self._ob_index_and_ids(
levels=[levels[idx] for idx in ob_indices],
codes=[codes[idx] for idx in ob_indices],
Expand Down

0 comments on commit a05ff18

Please sign in to comment.