|
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 | @pytest.mark.parametrize("nopython", [True, False])
|
@@ -1213,6 +1216,7 @@ def test_agg_with_name_as_column_name():
|
1213 | 1216 | tm.assert_series_equal(result, expected)
|
1214 | 1217 |
|
1215 | 1218 |
|
| 1219 | +@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)") |
1216 | 1220 | def test_agg_multiple_mixed():
|
1217 | 1221 | # GH 20909
|
1218 | 1222 | mdf = DataFrame(
|
@@ -1338,6 +1342,7 @@ def test_named_agg_reduce_axis1_raises(float_frame):
|
1338 | 1342 | float_frame.agg(row1=(name1, "sum"), row2=(name2, "max"), axis=axis)
|
1339 | 1343 |
|
1340 | 1344 |
|
| 1345 | +@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)") |
1341 | 1346 | def test_nuiscance_columns():
|
1342 | 1347 | # GH 15015
|
1343 | 1348 | df = DataFrame(
|
@@ -1514,6 +1519,7 @@ def test_apply_datetime_tz_issue(engine, request):
|
1514 | 1519 | tm.assert_series_equal(result, expected)
|
1515 | 1520 |
|
1516 | 1521 |
|
| 1522 | +@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)", strict=False) |
1517 | 1523 | @pytest.mark.parametrize("df", [DataFrame({"A": ["a", None], "B": ["c", "d"]})])
|
1518 | 1524 | @pytest.mark.parametrize("method", ["min", "max", "sum"])
|
1519 | 1525 | def test_mixed_column_raises(df, method, using_infer_string):
|
|
0 commit comments