File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -164,12 +164,8 @@ def equals(self, other):
164
164
if self .is_ (other ):
165
165
return True
166
166
167
- try :
168
- return com .array_equivalent (com ._values_from_object (self ),
169
- com ._values_from_object (other ))
170
- except TypeError :
171
- # e.g. fails in numpy 1.6 with DatetimeIndex #1681
172
- return False
167
+ return com .array_equivalent (com ._values_from_object (self ),
168
+ com ._values_from_object (other ))
173
169
174
170
def _wrap_joined_index (self , joined , other ):
175
171
name = self .name if self .name == other .name else None
@@ -325,8 +321,7 @@ def equals(self, other):
325
321
return False
326
322
left , right = self ._values , other ._values
327
323
return ((left == right ) | (self ._isnan & other ._isnan )).all ()
328
- except TypeError :
329
- # e.g. fails in numpy 1.6 with DatetimeIndex #1681
324
+ except (TypeError , ValueError ):
330
325
return False
331
326
332
327
def __contains__ (self , other ):
You can’t perform that action at this time.
0 commit comments