Skip to content

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
@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.

2 participants