File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -417,8 +417,8 @@ def is_dataclass(item):
417
417
418
418
"""
419
419
try :
420
- from dataclasses import is_dataclass
420
+ import dataclasses
421
421
422
- return is_dataclass (item ) and not isinstance (item , type )
422
+ return dataclasses . is_dataclass (item ) and not isinstance (item , type )
423
423
except ImportError :
424
424
return False
Original file line number Diff line number Diff line change @@ -6493,9 +6493,8 @@ def drop_duplicates(
6493
6493
6494
6494
inplace = validate_bool_kwarg (inplace , "inplace" )
6495
6495
ignore_index = validate_bool_kwarg (ignore_index , "ignore_index" )
6496
- duplicated = self .duplicated (subset , keep = keep )
6497
6496
6498
- result = self [- duplicated ]
6497
+ result = self [- self . duplicated ( subset , keep = keep ) ]
6499
6498
if ignore_index :
6500
6499
result .index = default_index (len (result ))
6501
6500
You can’t perform that action at this time.
0 commit comments