Skip to content

Commit 29873e4

Browse files
committed
NumPy compat
1 parent 3303be7 commit 29873e4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: pandas/tests/frame/indexing/test_where.py

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import numpy as np
55
import pytest
66

7+
from pandas.compat.numpy import np_version_gte1p24
8+
79
from pandas.core.dtypes.common import is_scalar
810

911
import pandas as pd
@@ -702,6 +704,11 @@ def test_where_categorical_filtering(self):
702704

703705
tm.assert_equal(result, expected)
704706

707+
@pytest.mark.xfail(
708+
not np_version_gte1p24,
709+
reason="Changed NumPy behavior for >1D non-tuple sequence indexing",
710+
strict=False,
711+
)
705712
def test_where_ea_other(self):
706713
# GH#38729/GH#38742
707714
df = DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]})

0 commit comments

Comments
 (0)