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 ,
@@ -1091,7 +1089,6 @@ def test_idxmin_empty(self, index, skipna, axis):
1091
1089
expected = Series (dtype = index .dtype )
1092
1090
tm .assert_series_equal (result , expected )
1093
1091
1094
- @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" , strict = False )
1095
1092
@pytest .mark .parametrize ("numeric_only" , [True , False ])
1096
1093
def test_idxmin_numeric_only (self , numeric_only ):
1097
1094
df = DataFrame ({"a" : [2 , 3 , 1 ], "b" : [2 , 1 , 1 ], "c" : list ("xyx" )})
@@ -1108,8 +1105,6 @@ def test_idxmin_axis_2(self, float_frame):
1108
1105
with pytest .raises (ValueError , match = msg ):
1109
1106
frame .idxmin (axis = 2 )
1110
1107
1111
- @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" , strict = False )
1112
- @pytest .mark .parametrize ("skipna" , [True , False ])
1113
1108
@pytest .mark .parametrize ("axis" , [0 , 1 ])
1114
1109
def test_idxmax (self , float_frame , int_frame , skipna , axis ):
1115
1110
frame = float_frame
@@ -1142,7 +1137,6 @@ def test_idxmax_empty(self, index, skipna, axis):
1142
1137
expected = Series (dtype = index .dtype )
1143
1138
tm .assert_series_equal (result , expected )
1144
1139
1145
- @pytest .mark .xfail (using_string_dtype (), reason = "TODO(infer_string)" , strict = False )
1146
1140
@pytest .mark .parametrize ("numeric_only" , [True , False ])
1147
1141
def test_idxmax_numeric_only (self , numeric_only ):
1148
1142
df = DataFrame ({"a" : [2 , 3 , 1 ], "b" : [2 , 1 , 1 ], "c" : list ("xyx" )})
0 commit comments