Skip to content

Commit 63aeec0

Browse files
committed
fix(typing): use pd.unique and annotate its type to np.ndarray
1 parent 0e04921 commit 63aeec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/reshape/reshape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def __init__(
143143
self.removed_level_full = index.levels[self.level]
144144
self.unique_nan_index: int = -1
145145
if not self.sort:
146-
unique_codes = np.unique(self.index.codes[self.level])
146+
unique_codes: np.ndarray = unique(self.index.codes[self.level])
147147
if self.has_nan:
148148
# drop nan codes, because they are not represented in level
149149
nan_mask = unique_codes == -1

0 commit comments

Comments
 (0)