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 bcd4944 commit 9bbc811Copy full SHA for 9bbc811
pandas/core/groupby/ops.py
@@ -663,6 +663,7 @@ def indices(self) -> dict[Hashable, npt.NDArray[np.intp]]:
663
np.nan if isna(key) else key: value for key, value in result.items()
664
}
665
else:
666
+ # MultiIndex has no efficient way to tell if there are NAs
667
result = {
668
tuple(np.nan if isna(comp) else comp for comp in key): value
669
for key, value in result.items()
0 commit comments