9
9
import numpy as np
10
10
import pytest
11
11
12
+ from pandas ._config import using_string_dtype
13
+
12
14
from pandas ._libs import iNaT
13
15
from pandas .errors import InvalidIndexError
14
16
@@ -174,6 +176,7 @@ def test_getitem_boolean(self, mixed_float_frame, mixed_int_frame, datetime_fram
174
176
if bif [c ].dtype != bifw [c ].dtype :
175
177
assert bif [c ].dtype == df [c ].dtype
176
178
179
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
177
180
def test_getitem_boolean_casting (self , datetime_frame ):
178
181
# don't upcast if we don't need to
179
182
df = datetime_frame .copy ()
@@ -501,6 +504,7 @@ def test_setitem_ambig(self, using_infer_string):
501
504
else :
502
505
assert dm [2 ].dtype == np .object_
503
506
507
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
504
508
def test_setitem_None (self , float_frame , using_infer_string ):
505
509
# GH #766
506
510
float_frame [None ] = float_frame ["A" ]
@@ -1121,6 +1125,7 @@ def test_setitem_with_unaligned_tz_aware_datetime_column(self):
1121
1125
df .loc [[0 , 1 , 2 ], "dates" ] = column [[1 , 0 , 2 ]]
1122
1126
tm .assert_series_equal (df ["dates" ], column )
1123
1127
1128
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
1124
1129
def test_loc_setitem_datetimelike_with_inference (self ):
1125
1130
# GH 7592
1126
1131
# assignment of timedeltas with NaT
@@ -1143,6 +1148,7 @@ def test_loc_setitem_datetimelike_with_inference(self):
1143
1148
)
1144
1149
tm .assert_series_equal (result , expected )
1145
1150
1151
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
1146
1152
def test_getitem_boolean_indexing_mixed (self ):
1147
1153
df = DataFrame (
1148
1154
{
@@ -1871,6 +1877,7 @@ def test_adding_new_conditional_column_with_string(dtype, infer_string) -> None:
1871
1877
tm .assert_frame_equal (df , expected )
1872
1878
1873
1879
1880
+ @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" )
1874
1881
def test_add_new_column_infer_string ():
1875
1882
# GH#55366
1876
1883
pytest .importorskip ("pyarrow" )
0 commit comments