Skip to content

Commit

Permalink
skip for pandas issue with latest numpy (pandas-dev/pandas#50360)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Dec 22, 2022
1 parent 9a8677d commit 65bfd46
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions python/pyarrow/tests/test_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -2064,6 +2064,11 @@ def test_nested_smaller_ints(self):
assert result3.equals(expected3)

def test_infer_lists(self):
if ((Version(np.__version__) >= Version("1.25.0.dev0")) and
(Version(pd.__version__) < Version("2.0.0"))):
# TODO: regression in pandas with numpy 1.25dev
# https://github.com/pandas-dev/pandas/issues/50360
pytest.skip("Regression in pandas with numpy 1.25")
data = OrderedDict([
('nan_ints', [[None, 1], [2, 3]]),
('ints', [[0, 1], [2, 3]]),
Expand Down Expand Up @@ -2113,6 +2118,11 @@ def test_infer_numpy_array(self):
_check_pandas_roundtrip(df, expected_schema=expected_schema)

def test_to_list_of_structs_pandas(self):
if ((Version(np.__version__) >= Version("1.25.0.dev0")) and
(Version(pd.__version__) < Version("2.0.0"))):
# TODO: regression in pandas with numpy 1.25dev
# https://github.com/pandas-dev/pandas/issues/50360
pytest.skip("Regression in pandas with numpy 1.25")
ints = pa.array([1, 2, 3], pa.int32())
strings = pa.array([['a', 'b'], ['c', 'd'], ['e', 'f']],
pa.list_(pa.string()))
Expand Down Expand Up @@ -2182,6 +2192,11 @@ def test_array_from_nested_arrays(self):
assert result.equals(expected)

def test_nested_large_list(self):
if ((Version(np.__version__) >= Version("1.25.0.dev0")) and
(Version(pd.__version__) < Version("2.0.0"))):
# TODO: regression in pandas with numpy 1.25dev
# https://github.com/pandas-dev/pandas/issues/50360
pytest.skip("Regression in pandas with numpy 1.25")
s = (pa.array([[[1, 2, 3], [4]], None],
type=pa.large_list(pa.large_list(pa.int64())))
.to_pandas())
Expand Down

0 comments on commit 65bfd46

Please sign in to comment.