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.
pd.unique
np.ndarray
1 parent 0e04921 commit 63aeec0Copy full SHA for 63aeec0
pandas/core/reshape/reshape.py
@@ -143,7 +143,7 @@ def __init__(
143
self.removed_level_full = index.levels[self.level]
144
self.unique_nan_index: int = -1
145
if not self.sort:
146
- unique_codes = np.unique(self.index.codes[self.level])
+ unique_codes: np.ndarray = unique(self.index.codes[self.level])
147
if self.has_nan:
148
# drop nan codes, because they are not represented in level
149
nan_mask = unique_codes == -1
0 commit comments