Skip to content

GH-37574: [Python] Compatibility with numpy 2.0 - #38040

Merged
jorisvandenbossche merged 5 commits into
apache:mainfrom
graingert:fix-for-numpy2
Oct 5, 2023
Merged

jorisvandenbossche merged 5 commits into
apache:mainfrom
graingert:fix-for-numpy2

Conversation

@graingert

@graingert graingert commented Oct 5, 2023 •

Copy link
Copy Markdown
Contributor

What changes are included in this PR?

support for numpy 2
install numpy 2 and pandas 2.2.0.dev0 from scientific-python-nightly-wheels

Are these changes tested?

I tested this locally with numpy==2.0.0.dev0 and pandas==2.2.0.dev0+325.g6c58a217f5

Are there any user-facing changes?

No

@graingert graingert changed the title fix for numpy2 GH-37574: [PYARROW] fix for numpy2 Oct 5, 2023
@graingert
graingert marked this pull request as ready for review October 5, 2023 13:17
numpy=${2:-"latest"}

if [ "${numpy}" = "nightly" ]; then
pip install --extra-index-url https://pypi.anaconda.org/scipy-wheels-nightly/simple --pre numpy

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

scipy-wheels-nightly only has up to pandas-2.1.0.dev0+926

scientific-python-nightly-wheels has up to
pandas-2.2.0.dev0+325

@AlenkaF AlenkaF changed the title GH-37574: [PYARROW] fix for numpy2 GH-37574: [Python] fix for numpy2 Oct 5, 2023
Comment thread python/pyarrow/pandas_compat.py Resolved
@apache apache deleted a comment from github-actions Bot Oct 5, 2023
@graingert
graingert requested a review from AlenkaF October 5, 2023 15:23
@jorisvandenbossche

Copy link
Copy Markdown
Member

@github-actions crossbow submit test-conda-python-3.10-pandas-nightly

@github-actions

github-actions Bot commented Oct 5, 2023

Copy link
Copy Markdown

Revision: 3c1c6aa

Submitted crossbow builds: ursacomputing/crossbow @ actions-64438424d7

Task Status
test-conda-python-3.10-pandas-nightly Github Actions

@graingert

Copy link
Copy Markdown
Contributor Author

@jorisvandenbossche the nightly build passed!

@AlenkaF AlenkaF left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks!

@jorisvandenbossche jorisvandenbossche changed the title GH-37574: [Python] fix for numpy2 GH-37574: [Python] Compatibilty with numpy 2.0 Oct 5, 2023

@jorisvandenbossche jorisvandenbossche left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks a lot!

@jorisvandenbossche
jorisvandenbossche merged commit 1eec38d into apache:main Oct 5, 2023
@jorisvandenbossche jorisvandenbossche changed the title GH-37574: [Python] Compatibilty with numpy 2.0 GH-37574: [Python] Compatibility with numpy 2.0 Oct 5, 2023
@graingert
graingert deleted the fix-for-numpy2 branch October 5, 2023 16:38
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 1eec38d.

There were 5 benchmark results indicating a performance regression:

The full Conbench report has more details. It also includes information about 6 possible false positives for unstable benchmarks that are known to sometimes produce them.

loicalleyne pushed a commit to loicalleyne/arrow that referenced this pull request Nov 13, 2023
### What changes are included in this PR?

support for numpy 2
install numpy 2 and pandas 2.2.0.dev0 from scientific-python-nightly-wheels

### Are these changes tested?
I tested this locally with numpy==2.0.0.dev0 and pandas==2.2.0.dev0+325.g6c58a217f5

### Are there any user-facing changes?
No

* Closes: apache#37574

Authored-by: Thomas Grainger <[email protected]>
Signed-off-by: Joris Van den Bossche <[email protected]>
dgreiss pushed a commit to dgreiss/arrow that referenced this pull request Feb 19, 2024
### What changes are included in this PR?

support for numpy 2
install numpy 2 and pandas 2.2.0.dev0 from scientific-python-nightly-wheels

### Are these changes tested?
I tested this locally with numpy==2.0.0.dev0 and pandas==2.2.0.dev0+325.g6c58a217f5

### Are there any user-facing changes?
No

* Closes: apache#37574

Authored-by: Thomas Grainger <[email protected]>
Signed-off-by: Joris Van den Bossche <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Python] Compatibility with numpy 2.0 (removal of np.unicode_)

3 participants