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

Support numpy 2.0 in tests #943

Merged
merged 2 commits into from
Jun 26, 2024
Merged

Conversation

Dr-Irv
Copy link
Collaborator

@Dr-Irv Dr-Irv commented Jun 25, 2024

CI is now pulling in numpy 2.0, so this removes the numpy deprecated np.float_ and changes it to np.double, which works with older and newer versions of numpy.

In addition, there are a number of other changes where numpy has removed certain aliases for dtypes, so removed those from the tests.

Set up the CI to use numpy 1.x with python <=3.11, and numpy 2.0 with python=3.12 so both versions of numpy are tested.

@Dr-Irv Dr-Irv changed the title change np.float_ to np.double Support numpy 2.0 in tests Jun 25, 2024
@Dr-Irv Dr-Irv requested a review from twoertwein June 25, 2024 23:56
"FIRSTPARTY",
"POST_CORE",
"LOCALFOLDER",
]
Copy link
Member

Choose a reason for hiding this comment

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

Do you use a formatting tool for these changes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I used VSCode to do the editing, and I have a setting to tell it to auto-format files after saving, so I'm guessing that's what happened.

Will you merge?

@twoertwein twoertwein merged commit 56ddb6f into pandas-dev:main Jun 26, 2024
13 checks passed
@twoertwein
Copy link
Member

Thank you @Dr-Irv !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants