Skip to content

Commit bfd987d

Browse files
authored
1 parent dc37a6d commit bfd987d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6875,7 +6875,7 @@ def duplicated(
68756875
"""
68766876

68776877
if self.empty:
6878-
return self._constructor_sliced(dtype=bool)
6878+
return self._constructor_sliced(dtype=bool, index=self.index)
68796879

68806880
def f(vals) -> tuple[np.ndarray, int]:
68816881
labels, shape = algorithms.factorize(vals, size_hint=len(self))

0 commit comments

Comments
 (0)