Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Short circuit Index.equal if compared Index isn't same type (#18067)
closes #8689 Before, comparing two different Index subclasses would execute a GPU kernel when we know they wouldn't be equal (e.g. DatetimeIndex equals RangeIndex). This PR add a short circuit clause to check that we are comparing the same subclasses. Also ensures we don't return a `np.bool_` object from this result. Authors: - Matthew Roeschke (https://github.com/mroeschke) Approvers: - GALI PREM SAGAR (https://github.com/galipremsagar) URL: #18067
- Loading branch information