Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing CI after Pandas 2.0 update #6051

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

tanujkhattar
Copy link
Collaborator

@tanujkhattar tanujkhattar commented Apr 3, 2023

CI is failing on master because pytest on Windows are failing. Upon some digging, it looks like a new release of Pandas 2.0 today broke us. See https://pandas.pydata.org/docs/dev/whatsnew/v2.0.0.html#other-api-changes

My rough guess is that the culprit is "pandas.testing.assert_index_equal() with parameter exact="equiv" now considers two indexes equal when both are either a RangeIndex or Index with an int64 dtype. Previously it meant either a RangeIndex or a Int64Index (GH51098)"

I'm not fully sure why it's failing only on Windows but the change is small enough that I feel comfortable unblocking the open PRs without spending more time in investigating the root cause.

@CirqBot CirqBot added the Size: XS <10 lines changed label Apr 3, 2023
Copy link
Collaborator

@vtomole vtomole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tanujkhattar tanujkhattar marked this pull request as ready for review April 3, 2023 23:05
@tanujkhattar tanujkhattar requested review from mrwojtek, a team and cduck as code owners April 3, 2023 23:05
@tanujkhattar tanujkhattar requested a review from dstrain115 April 3, 2023 23:05
Copy link
Collaborator

@dabacon dabacon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a comment about why this fix?

@tanujkhattar tanujkhattar merged commit 6b0c098 into quantumlib:master Apr 3, 2023
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: XS <10 lines changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants