Skip to content

Commit 419d344

Browse files
committed
Add check for Version < 2.0.2 on Pandas test
1 parent 59da22d commit 419d344

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

python/pyarrow/tests/test_pandas.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4550,6 +4550,10 @@ def test_to_pandas_extension_dtypes_mapping():
45504550

45514551
def test_to_pandas_extension_dtypes_mapping_complex_type():
45524552
# https://github.com/apache/arrow/pull/44720
4553+
# For the pandas issue, see backport commit to 2.0.2:
4554+
# https://github.com/pandas-dev/pandas/commit/c8cd0277f8f889c5db7463ef7f36b495b5c9de69
4555+
if Version(pd.__version__) < Version("2.0.2"):
4556+
pytest.skip("ArrowDtype.type doesn't support struct before pandas 2.0.2")
45534557
pa_type = pa.struct(
45544558
[
45554559
pa.field("bar", pa.bool_(), nullable=False),

0 commit comments

Comments
 (0)