This is an automated email from the ASF dual-hosted git repository.
jorisvandenbossche pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new a5ac94e5b8 GH-35321: [Python][CI] Skip extension type test failing
with pandas 2.0.1 (#35324)
a5ac94e5b8 is described below
commit a5ac94e5b8ab875d041cd882ab0fadb3abd771a2
Author: Joris Van den Bossche <[email protected]>
AuthorDate: Wed Apr 26 11:30:20 2023 +0200
GH-35321: [Python][CI] Skip extension type test failing with pandas 2.0.1
(#35324)
This test fails presumably because of a regression or change in behaviour
in pandas 2.0.1, therefore skipping the test for now.
* Closes: #35321
Authored-by: Joris Van den Bossche <[email protected]>
Signed-off-by: Joris Van den Bossche <[email protected]>
---
python/pyarrow/tests/test_extension_type.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/python/pyarrow/tests/test_extension_type.py
b/python/pyarrow/tests/test_extension_type.py
index 44280ca951..090e22a746 100644
--- a/python/pyarrow/tests/test_extension_type.py
+++ b/python/pyarrow/tests/test_extension_type.py
@@ -1296,8 +1296,10 @@ def
test_extension_to_pandas_storage_type(registered_period_type):
assert result["ext"].dtype == pandas_dtype
import pandas as pd
- if Version(pd.__version__) > Version("2.0.0"):
-
+ if (
+ Version(pd.__version__) > Version("2.0.0") and
+ Version(pd.__version__) != Version("2.0.1")
+ ):
# Check the usage of types_mapper
result = table.to_pandas(types_mapper=pd.ArrowDtype)
assert isinstance(result["ext"].dtype, pd.ArrowDtype)