Skip to content

Commit 436a9eb

Browse files
authored
apacheGH-39914 fix test for old pandas
1 parent 1c23076 commit 436a9eb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎python/pyarrow/tests/test_pandas.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4411,8 +4411,11 @@ def test_to_pandas_extension_dtypes_mapping():
44114411
assert isinstance(result['a'].dtype, pd.PeriodDtype)
44124412

44134413

4414-
4414+
44154415
def test_to_pandas_extension_dtypes_mapping_complex_type():
4416+
if Version(pd.__version__) < Version("1.5.2"):
4417+
pytest.skip("Test relies on pd.ArrowDtype")
4418+
# https://github.com/apache/arrow/pull/44720
44164419
pa_type = pa.struct(
44174420
[
44184421
pa.field("bar", pa.bool_(), nullable=False),

0 commit comments

Comments
 (0)