pandas-dev / pandas

Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
https://pandas.pydata.org
BSD 3-Clause "New" or "Revised" License
42.62k stars 17.57k forks source link

TST: Fix some test builds for numpy 2.0 #59046

Closed mroeschke closed 1 week ago

lithomas1 commented 1 week ago

Looks like some of the adjusted tests are causing some failures.

mroeschke commented 1 week ago

Had to pin numpy on the pyarrow dev build; we can plan to tackle the test failures in that build along with the other builds once they pull in numpy 2.0 by default. Going to merge to get to green

lumberbot-app[bot] commented 1 week ago

Owee, I'm MrMeeseeks, Look at me.

There seem to be a conflict, please backport manually. Here are approximate instructions:

  1. Checkout backport branch and update it.
git checkout 2.2.x
git pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:

    git cherry-pick -x -m1 b1e5f0636ab2cc3e6949a051e37dc289616a4a4f
  2. You will likely have some merge/cherry-pick conflict here, fix them and commit:

git commit -am 'Backport PR #59046: TST: Fix some test builds for numpy 2.0'
  1. Push to a named branch:
git push YOURFORK 2.2.x:auto-backport-of-pr-59046-on-2.2.x
  1. Create a PR against branch 2.2.x, I would have named this PR:

"Backport PR #59046 on branch 2.2.x (TST: Fix some test builds for numpy 2.0)"

And apply the correct labels and milestones.

Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon!

Remember to remove the Still Needs Manual Backport label once the PR gets merged.

If these instructions are inaccurate, feel free to suggest an improvement.