@@ -816,22 +816,10 @@ def test_bool_and_nan_to_float(all_parsers):
816
816
817
817
@xfail_pyarrow
818
818
@pytest .mark .parametrize (
819
- "na_values, expected_result, test_id" ,
820
- [
821
- (
822
- {"A" : [- 99.0 , - 99 ]},
823
- DataFrame ({"A" : [np .nan , np .nan , np .nan , np .nan ]}),
824
- "float_first" ,
825
- ),
826
- (
827
- {"A" : [- 99 , - 99.0 ]},
828
- DataFrame ({"A" : [np .nan , np .nan , np .nan , np .nan ]}),
829
- "int_first" ,
830
- ),
831
- ],
832
- ids = ["float_first" , "int_first" ],
819
+ "na_values" ,
820
+ [[- 99.0 , - 99 ], [- 99 , - 99.0 ]],
833
821
)
834
- def test_na_values_dict_without_dtype (all_parsers , na_values , expected_result , test_id ):
822
+ def test_na_values_dict_without_dtype (all_parsers , na_values ):
835
823
parser = all_parsers
836
824
data = """A
837
825
-99
@@ -840,4 +828,5 @@ def test_na_values_dict_without_dtype(all_parsers, na_values, expected_result, t
840
828
-99.0"""
841
829
842
830
result = parser .read_csv (StringIO (data ), na_values = na_values )
843
- tm .assert_frame_equal (result , expected_result )
831
+ expected = DataFrame ({"A" : [np .nan , np .nan , np .nan , np .nan ]})
832
+ tm .assert_frame_equal (result , expected )
0 commit comments