You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Comparing two pandas.Index with is will almost always return False since pandas.Index are always different objects even if they have the same contents. This means we need to switch to == in this case. Of course the only case when it is True both are actually the same object which is of course what I naively did in the tests. Sorry. Might consider doing a new release with this bug fix as soon as possible.
veni-vidi-vici-dormivi
changed the title
BUG: is comparison (almost) always False for immutable pandas.Index
BUG: is comparison (almost) always False for pandas.IndexJan 14, 2025
Comparing two
pandas.Index
withis
will almost always returnFalse
sincepandas.Index
are always different objects even if they have the same contents. This means we need to switch to==
in this case. Of course the only case when it isTrue
both are actually the same object which is of course what I naively did in the tests. Sorry. Might consider doing a new release with this bug fix as soon as possible.filefisher/filefisher/_filefinder.py
Lines 723 to 724 in f896d68
The text was updated successfully, but these errors were encountered: