We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccabdb3 commit 6e55ce2Copy full SHA for 6e55ce2
pandas/tests/frame/test_unary.py
@@ -53,7 +53,7 @@ def test_neg_raises(self, df, using_infer_string):
53
"bad operand type for unary -: 'str'|"
54
r"bad operand type for unary -: 'DatetimeArray'"
55
)
56
- if using_infer_string:
+ if using_infer_string and df.dtypes.iloc[0] == "string":
57
import pyarrow as pa
58
59
msg = "has no kernel"
0 commit comments