File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1105,9 +1105,6 @@ def nunique(self, dropna: bool = True) -> int:
1105
1105
obj = remove_na_arraylike (self ) if dropna else self
1106
1106
return len (obj .unique ())
1107
1107
1108
- def _is_unique (self ) -> bool :
1109
- return self .nunique (dropna = False ) == len (self )
1110
-
1111
1108
@property
1112
1109
def is_unique (self ) -> bool :
1113
1110
"""
@@ -1117,7 +1114,7 @@ def is_unique(self) -> bool:
1117
1114
-------
1118
1115
bool
1119
1116
"""
1120
- return self ._is_unique ( )
1117
+ return self .nunique ( dropna = False ) == len ( self )
1121
1118
1122
1119
@property
1123
1120
def is_monotonic (self ) -> bool :
Original file line number Diff line number Diff line change @@ -5396,7 +5396,7 @@ def is_unique(
5396
5396
self = self [subset ]
5397
5397
5398
5398
if len (self .columns ):
5399
- return self .apply (Series . _is_unique )
5399
+ return self .apply (lambda x : x . is_unique )
5400
5400
else :
5401
5401
return self ._constructor_sliced (dtype = bool )
5402
5402
You can’t perform that action at this time.
0 commit comments