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
The problem is in DatetimeIndexOpsMixin.__contains__, which checks the type of idx.get_loc(key) to determine whether the key was found in the index. If the index contains duplicate entries and is not monotonic increasing (for some reason, monotonic decreasing doesn't cut it), get_loc eventually falls back to Int64Engine._maybe_get_bool_indexer, which returns an ndarray of bools if the key is duplicated. Since the original __contains__ method is looking for scalars or slices, it reports that the duplicated entry is not present.
The text was updated successfully, but these errors were encountered:
The embarrassing truth is that I lost my SSH key for uploading to github, and haven't gotten around to regenerating it yet. So I won't be able to squash. /sheepish
This was fun to debug.
TimedeltaIndex is also broken.
The problem is in
DatetimeIndexOpsMixin.__contains__
, which checks the type ofidx.get_loc(key)
to determine whether the key was found in the index. If the index contains duplicate entries and is not monotonic increasing (for some reason, monotonic decreasing doesn't cut it),get_loc
eventually falls back toInt64Engine._maybe_get_bool_indexer
, which returns an ndarray of bools if the key is duplicated. Since the original__contains__
method is looking for scalars or slices, it reports that the duplicated entry is not present.The text was updated successfully, but these errors were encountered: