|
4 | 4 | import numpy as np
|
5 | 5 | import pytest
|
6 | 6 |
|
| 7 | +from pandas._config import using_string_dtype |
| 8 | + |
7 | 9 | from pandas.core.dtypes.dtypes import CategoricalDtype
|
8 | 10 |
|
9 | 11 | import pandas as pd
|
@@ -61,6 +63,7 @@ def test_apply(float_frame, engine, request):
|
61 | 63 | assert result.index is float_frame.index
|
62 | 64 |
|
63 | 65 |
|
| 66 | +@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)", strict=False) |
64 | 67 | @pytest.mark.parametrize("axis", [0, 1])
|
65 | 68 | @pytest.mark.parametrize("raw", [True, False])
|
66 | 69 | def test_apply_args(float_frame, axis, raw, engine, request):
|
@@ -1169,6 +1172,7 @@ def test_agg_with_name_as_column_name():
|
1169 | 1172 | tm.assert_series_equal(result, expected)
|
1170 | 1173 |
|
1171 | 1174 |
|
| 1175 | +@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)") |
1172 | 1176 | def test_agg_multiple_mixed():
|
1173 | 1177 | # GH 20909
|
1174 | 1178 | mdf = DataFrame(
|
@@ -1286,6 +1290,7 @@ def test_agg_reduce(axis, float_frame):
|
1286 | 1290 | tm.assert_frame_equal(result, expected)
|
1287 | 1291 |
|
1288 | 1292 |
|
| 1293 | +@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)") |
1289 | 1294 | def test_nuiscance_columns():
|
1290 | 1295 | # GH 15015
|
1291 | 1296 | df = DataFrame(
|
@@ -1462,6 +1467,7 @@ def test_apply_datetime_tz_issue(engine, request):
|
1462 | 1467 | tm.assert_series_equal(result, expected)
|
1463 | 1468 |
|
1464 | 1469 |
|
| 1470 | +@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)", strict=False) |
1465 | 1471 | @pytest.mark.parametrize("df", [DataFrame({"A": ["a", None], "B": ["c", "d"]})])
|
1466 | 1472 | @pytest.mark.parametrize("method", ["min", "max", "sum"])
|
1467 | 1473 | def test_mixed_column_raises(df, method, using_infer_string):
|
|
0 commit comments