6
6
import numpy as np
7
7
import pytest
8
8
9
- from pandas ._config import using_string_dtype
10
-
11
9
from pandas .compat import (
12
10
IS64 ,
13
11
is_platform_windows ,
@@ -1081,7 +1079,6 @@ def test_idxmin_empty(self, index, skipna, axis):
1081
1079
expected = Series (dtype = index .dtype )
1082
1080
tm .assert_series_equal (result , expected )
1083
1081
1084
- @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" , strict = False )
1085
1082
@pytest .mark .parametrize ("numeric_only" , [True , False ])
1086
1083
def test_idxmin_numeric_only (self , numeric_only ):
1087
1084
df = DataFrame ({"a" : [2 , 3 , 1 ], "b" : [2 , 1 , 1 ], "c" : list ("xyx" )})
@@ -1098,7 +1095,6 @@ def test_idxmin_axis_2(self, float_frame):
1098
1095
with pytest .raises (ValueError , match = msg ):
1099
1096
frame .idxmin (axis = 2 )
1100
1097
1101
- @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" , strict = False )
1102
1098
@pytest .mark .parametrize ("axis" , [0 , 1 ])
1103
1099
def test_idxmax (self , float_frame , int_frame , skipna , axis ):
1104
1100
frame = float_frame
@@ -1132,7 +1128,6 @@ def test_idxmax_empty(self, index, skipna, axis):
1132
1128
expected = Series (dtype = index .dtype )
1133
1129
tm .assert_series_equal (result , expected )
1134
1130
1135
- @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" , strict = False )
1136
1131
@pytest .mark .parametrize ("numeric_only" , [True , False ])
1137
1132
def test_idxmax_numeric_only (self , numeric_only ):
1138
1133
df = DataFrame ({"a" : [2 , 3 , 1 ], "b" : [2 , 1 , 1 ], "c" : list ("xyx" )})
0 commit comments