We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bbc811 commit 900a267Copy full SHA for 900a267
pandas/core/groupby/ops.py
@@ -662,7 +662,7 @@ def indices(self) -> dict[Hashable, npt.NDArray[np.intp]]:
662
result = {
663
np.nan if isna(key) else key: value for key, value in result.items()
664
}
665
- else:
+ elif has_mi:
666
# MultiIndex has no efficient way to tell if there are NAs
667
668
tuple(np.nan if isna(comp) else comp for comp in key): value
0 commit comments