You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "AlenkaF (via GitHub)" <gi...@apache.org> on 2024/01/08 08:53:17 UTC
[PR] GH-39437: [CI][Python] Update version check for two pandas tests using numpy string dtype [arrow]
AlenkaF opened a new pull request, #39498:
URL: https://github.com/apache/arrow/pull/39498
Update version check on two pandas tests to fix failing tests on the CI: [test-conda-python-3.10-pandas-nightly](https://github.com/ursacomputing/crossbow/actions/runs/7391976015/job/20109720695)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-39437: [CI][Python] Update version check for two pandas tests using numpy string dtype [arrow]
Posted by "AlenkaF (via GitHub)" <gi...@apache.org>.
AlenkaF commented on PR #39498:
URL: https://github.com/apache/arrow/pull/39498#issuecomment-1880648296
Numpy string dtype error seems to be fixed but there are still other issues:
- two `TestConvertMetadata` tests are failing with `DeprecationWarning: make_block is deprecated and will be removed in a future version. Use public APIs instead.`
- `test_backwards_compatible_column_metadata_handling` with `AssertionError`
- `test_categories_with_string_pyarrow_dtype` with `AssertionError`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-39437: [CI][Python] Update pandas tests failing on pandas nightly CI build [arrow]
Posted by "AlenkaF (via GitHub)" <gi...@apache.org>.
AlenkaF commented on PR #39498:
URL: https://github.com/apache/arrow/pull/39498#issuecomment-1880838149
@github-actions crossbow submit test-conda-python-3.10-pandas-nightly
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-39437: [CI][Python] Update pandas tests failing on pandas nightly CI build [arrow]
Posted by "jorisvandenbossche (via GitHub)" <gi...@apache.org>.
jorisvandenbossche commented on code in PR #39498:
URL: https://github.com/apache/arrow/pull/39498#discussion_r1444599551
##########
python/pyarrow/tests/test_pandas.py:
##########
@@ -255,6 +255,12 @@ def test_range_index_force_serialization(self):
tm.assert_frame_equal(restored, df)
def test_rangeindex_doesnt_warn(self):
+ if Version("2.2.0") <= Version(pd.__version__):
+ # make_block deprecation in pandas, still under discussion
+ # https://github.com/pandas-dev/pandas/pull/56422
+ # https://github.com/pandas-dev/pandas/issues/40226
+ pytest.skip("make_block deprecated in pandas 2.2.0")
Review Comment:
This should work I think:
```
with warnings.catch_warnings():
warnings.simplefilter("error")
warnings.filterwarnings("ignore", "make_block is deprecated", DeprecationWarning)
_check_pandas_roundtrip(df, preserve_index=True)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-39437: [CI][Python] Update pandas tests failing on pandas nightly CI build [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39498:
URL: https://github.com/apache/arrow/pull/39498#issuecomment-1881372588
Revision: e6f71bdfd84aee1d540a07c57cfb9338e22a083b
Submitted crossbow builds: [ursacomputing/crossbow @ actions-48a1e6cea7](https://github.com/ursacomputing/crossbow/branches/all?query=actions-48a1e6cea7)
|Task|Status|
|----|------|
|test-conda-python-3.10-pandas-nightly|[](https://github.com/ursacomputing/crossbow/actions/runs/7450029868/job/20268007383)|
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-39437: [CI][Python] Update version check for two pandas tests using numpy string dtype [arrow]
Posted by "AlenkaF (via GitHub)" <gi...@apache.org>.
AlenkaF commented on PR #39498:
URL: https://github.com/apache/arrow/pull/39498#issuecomment-1880594700
@github-actions crossbow submit test-conda-python-3.10-pandas-nightly
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-39437: [CI][Python] Update pandas tests failing on pandas nightly CI build [arrow]
Posted by "jorisvandenbossche (via GitHub)" <gi...@apache.org>.
jorisvandenbossche commented on code in PR #39498:
URL: https://github.com/apache/arrow/pull/39498#discussion_r1444591355
##########
python/pyarrow/tests/test_pandas.py:
##########
@@ -255,6 +255,12 @@ def test_range_index_force_serialization(self):
tm.assert_frame_equal(restored, df)
def test_rangeindex_doesnt_warn(self):
+ if Version("2.2.0") <= Version(pd.__version__):
+ # make_block deprecation in pandas, still under discussion
+ # https://github.com/pandas-dev/pandas/pull/56422
+ # https://github.com/pandas-dev/pandas/issues/40226
+ pytest.skip("make_block deprecated in pandas 2.2.0")
Review Comment:
Alternatively, we could also specifically ignore this warning in the `with warnings.catch_warnings():` block below. (I don't know if it's easy to combine an "ignore" rule together with "error")
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-39437: [CI][Python] Update pandas tests failing on pandas nightly CI build [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39498:
URL: https://github.com/apache/arrow/pull/39498#issuecomment-1880841169
Revision: 72cf5d772afad6ef6c2ba60b4d961aaa11f80159
Submitted crossbow builds: [ursacomputing/crossbow @ actions-7470aed9bf](https://github.com/ursacomputing/crossbow/branches/all?query=actions-7470aed9bf)
|Task|Status|
|----|------|
|test-conda-python-3.10-pandas-nightly|[](https://github.com/ursacomputing/crossbow/actions/runs/7446905737/job/20258113586)|
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-39437: [CI][Python] Update pandas tests failing on pandas nightly CI build [arrow]
Posted by "jorisvandenbossche (via GitHub)" <gi...@apache.org>.
jorisvandenbossche commented on PR #39498:
URL: https://github.com/apache/arrow/pull/39498#issuecomment-1881366902
@github-actions crossbow submit test-conda-python-3.10-pandas-nightly
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-39437: [CI][Python] Update version check for two pandas tests using numpy string dtype [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39498:
URL: https://github.com/apache/arrow/pull/39498#issuecomment-1880808310
Revision: f7cc3e80dc0d61002063cc7e6cc4342dc07740bf
Submitted crossbow builds: [ursacomputing/crossbow @ actions-9d56f962b5](https://github.com/ursacomputing/crossbow/branches/all?query=actions-9d56f962b5)
|Task|Status|
|----|------|
|test-conda-python-3.10-pandas-nightly|[](https://github.com/ursacomputing/crossbow/actions/runs/7446669106/job/20257394544)|
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-39437: [CI][Python] Update version check for two pandas tests using numpy string dtype [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39498:
URL: https://github.com/apache/arrow/pull/39498#issuecomment-1880598403
Revision: 212e0b286b558ef0b7cdf85be24750365b0c143e
Submitted crossbow builds: [ursacomputing/crossbow @ actions-76a8a06d7c](https://github.com/ursacomputing/crossbow/branches/all?query=actions-76a8a06d7c)
|Task|Status|
|----|------|
|test-conda-python-3.10-pandas-nightly|[](https://github.com/ursacomputing/crossbow/actions/runs/7445169285/job/20252913432)|
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-39437: [CI][Python] Update version check for two pandas tests using numpy string dtype [arrow]
Posted by "AlenkaF (via GitHub)" <gi...@apache.org>.
AlenkaF commented on PR #39498:
URL: https://github.com/apache/arrow/pull/39498#issuecomment-1880805013
@github-actions crossbow submit test-conda-python-3.10-pandas-nightly
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-39437: [CI][Python] Update pandas tests failing on pandas nightly CI build [arrow]
Posted by "jorisvandenbossche (via GitHub)" <gi...@apache.org>.
jorisvandenbossche merged PR #39498:
URL: https://github.com/apache/arrow/pull/39498
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-39437: [CI][Python] Update pandas tests failing on pandas nightly CI build [arrow]
Posted by "jorisvandenbossche (via GitHub)" <gi...@apache.org>.
jorisvandenbossche commented on code in PR #39498:
URL: https://github.com/apache/arrow/pull/39498#discussion_r1444599551
##########
python/pyarrow/tests/test_pandas.py:
##########
@@ -255,6 +255,12 @@ def test_range_index_force_serialization(self):
tm.assert_frame_equal(restored, df)
def test_rangeindex_doesnt_warn(self):
+ if Version("2.2.0") <= Version(pd.__version__):
+ # make_block deprecation in pandas, still under discussion
+ # https://github.com/pandas-dev/pandas/pull/56422
+ # https://github.com/pandas-dev/pandas/issues/40226
+ pytest.skip("make_block deprecated in pandas 2.2.0")
Review Comment:
This should work I think:
```
with warnings.catch_warnings():
warnings.simplefilter("error")
warnings.filterwarnings("ignore", "make_block is deprecated", DeprecationWarning)
_check_pandas_roundtrip(df, preserve_index=True)
```
That will still error for any other warning.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-39437: [CI][Python] Update pandas tests failing on pandas nightly CI build [arrow]
Posted by "jorisvandenbossche (via GitHub)" <gi...@apache.org>.
jorisvandenbossche commented on code in PR #39498:
URL: https://github.com/apache/arrow/pull/39498#discussion_r1444610499
##########
python/pyarrow/tests/parquet/test_pandas.py:
##########
@@ -404,6 +404,10 @@ def test_backwards_compatible_index_multi_level_some_named(datadir):
@pytest.mark.pandas
def test_backwards_compatible_column_metadata_handling(datadir):
+ if Version("2.2.0") <= Version(pd.__version__):
+ # TODO: regression in pandas
+ # add a link to the issue
Review Comment:
```suggestion
# TODO: regression in pandas
# https://github.com/pandas-dev/pandas/issues/56775
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-39437: [CI][Python] Update pandas tests failing on pandas nightly CI build [arrow]
Posted by "conbench-apache-arrow[bot] (via GitHub)" <gi...@apache.org>.
conbench-apache-arrow[bot] commented on PR #39498:
URL: https://github.com/apache/arrow/pull/39498#issuecomment-1883184339
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 48f704e2a3161366661d180e0c2198c00671756c.
There were no benchmark performance regressions. 🎉
The [full Conbench report](https://github.com/apache/arrow/runs/20305389530) has more details. It also includes information about 6 possible false positives for unstable benchmarks that are known to sometimes produce them.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org