Skip to content

Commit 900a267

Browse files
committed
fixup
1 parent 9bbc811 commit 900a267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/groupby/ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ def indices(self) -> dict[Hashable, npt.NDArray[np.intp]]:
662662
result = {
663663
np.nan if isna(key) else key: value for key, value in result.items()
664664
}
665-
else:
665+
elif has_mi:
666666
# MultiIndex has no efficient way to tell if there are NAs
667667
result = {
668668
tuple(np.nan if isna(comp) else comp for comp in key): value

0 commit comments

Comments
 (0)