|
6 | 6 |
|
7 | 7 | from pandas._config import using_string_dtype |
8 | 8 |
|
9 | | -from pandas.compat import HAS_PYARROW |
10 | | - |
11 | 9 | from pandas.core.dtypes.dtypes import CategoricalDtype |
12 | 10 |
|
13 | 11 | import pandas as pd |
@@ -1218,7 +1216,6 @@ def test_agg_with_name_as_column_name(): |
1218 | 1216 | tm.assert_series_equal(result, expected) |
1219 | 1217 |
|
1220 | 1218 |
|
1221 | | -@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)") |
1222 | 1219 | def test_agg_multiple_mixed(): |
1223 | 1220 | # GH 20909 |
1224 | 1221 | mdf = DataFrame( |
@@ -1247,9 +1244,6 @@ def test_agg_multiple_mixed(): |
1247 | 1244 | tm.assert_frame_equal(result, expected) |
1248 | 1245 |
|
1249 | 1246 |
|
1250 | | -@pytest.mark.xfail( |
1251 | | - using_string_dtype() and not HAS_PYARROW, reason="TODO(infer_string)" |
1252 | | -) |
1253 | 1247 | def test_agg_multiple_mixed_raises(): |
1254 | 1248 | # GH 20909 |
1255 | 1249 | mdf = DataFrame( |
@@ -1347,7 +1341,6 @@ def test_named_agg_reduce_axis1_raises(float_frame): |
1347 | 1341 | float_frame.agg(row1=(name1, "sum"), row2=(name2, "max"), axis=axis) |
1348 | 1342 |
|
1349 | 1343 |
|
1350 | | -@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)") |
1351 | 1344 | def test_nuiscance_columns(): |
1352 | 1345 | # GH 15015 |
1353 | 1346 | df = DataFrame( |
@@ -1524,7 +1517,6 @@ def test_apply_datetime_tz_issue(engine, request): |
1524 | 1517 | tm.assert_series_equal(result, expected) |
1525 | 1518 |
|
1526 | 1519 |
|
1527 | | -@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)", strict=False) |
1528 | 1520 | @pytest.mark.parametrize("df", [DataFrame({"A": ["a", None], "B": ["c", "d"]})]) |
1529 | 1521 | @pytest.mark.parametrize("method", ["min", "max", "sum"]) |
1530 | 1522 | def test_mixed_column_raises(df, method, using_infer_string): |
|
0 commit comments