@@ -573,7 +573,7 @@ def test_multiple_date_cols_with_header(all_parsers):
573
573
ID,date,nominalTime
574
574
KORD,19990127, 19:00:00
575
575
KORD,19990127, 20:00:00""" ,
576
- dict ( ID = [1 , 2 ]) ,
576
+ { "ID" : [1 , 2 ]} ,
577
577
"Date column ID already in dict" ,
578
578
),
579
579
],
@@ -784,7 +784,7 @@ def test_multi_index_parse_dates(all_parsers, index_col):
784
784
tm .assert_frame_equal (result , expected )
785
785
786
786
787
- @pytest .mark .parametrize ("kwargs" , [dict ( dayfirst = True ), dict ( day_first = True ) ])
787
+ @pytest .mark .parametrize ("kwargs" , [{ " dayfirst" : True }, { " day_first" : True } ])
788
788
def test_parse_dates_custom_euro_format (all_parsers , kwargs ):
789
789
parser = all_parsers
790
790
data = """foo,bar,baz
@@ -1076,7 +1076,7 @@ def test_multiple_date_col_multiple_index_compat(all_parsers):
1076
1076
tm .assert_frame_equal (result , expected )
1077
1077
1078
1078
1079
- @pytest .mark .parametrize ("kwargs" , [dict (), dict ( index_col = "C" ) ])
1079
+ @pytest .mark .parametrize ("kwargs" , [{}, { " index_col" : "C" } ])
1080
1080
def test_read_with_parse_dates_scalar_non_bool (all_parsers , kwargs ):
1081
1081
# see gh-5636
1082
1082
parser = all_parsers
@@ -1140,24 +1140,24 @@ def test_parse_dates_empty_string(all_parsers):
1140
1140
[
1141
1141
(
1142
1142
"a\n 04.15.2016" ,
1143
- dict ( parse_dates = ["a" ]) ,
1143
+ { " parse_dates" : ["a" ]} ,
1144
1144
DataFrame ([datetime (2016 , 4 , 15 )], columns = ["a" ]),
1145
1145
),
1146
1146
(
1147
1147
"a\n 04.15.2016" ,
1148
- dict ( parse_dates = True , index_col = 0 ) ,
1148
+ { " parse_dates" : True , " index_col" : 0 } ,
1149
1149
DataFrame (index = DatetimeIndex (["2016-04-15" ], name = "a" )),
1150
1150
),
1151
1151
(
1152
1152
"a,b\n 04.15.2016,09.16.2013" ,
1153
- dict ( parse_dates = ["a" , "b" ]) ,
1153
+ { " parse_dates" : ["a" , "b" ]} ,
1154
1154
DataFrame (
1155
1155
[[datetime (2016 , 4 , 15 ), datetime (2013 , 9 , 16 )]], columns = ["a" , "b" ]
1156
1156
),
1157
1157
),
1158
1158
(
1159
1159
"a,b\n 04.15.2016,09.16.2013" ,
1160
- dict ( parse_dates = True , index_col = [0 , 1 ]) ,
1160
+ { " parse_dates" : True , " index_col" : [0 , 1 ]} ,
1161
1161
DataFrame (
1162
1162
index = MultiIndex .from_tuples (
1163
1163
[(datetime (2016 , 4 , 15 ), datetime (2013 , 9 , 16 ))], names = ["a" , "b" ]
@@ -1215,7 +1215,7 @@ def test_parse_date_time_multi_level_column_name(all_parsers, date_parser, warni
1215
1215
2001-01-05, 10:00:00, 0.0, 10.
1216
1216
2001-01-05, 00:00:00, 1., 11.
1217
1217
""" ,
1218
- dict ( header = 0 , parse_dates = {"date_time" : [0 , 1 ]}) ,
1218
+ { " header" : 0 , " parse_dates" : {"date_time" : [0 , 1 ]}} ,
1219
1219
DataFrame (
1220
1220
[
1221
1221
[datetime (2001 , 1 , 5 , 10 , 0 , 0 ), 0.0 , 10 ],
@@ -1233,7 +1233,7 @@ def test_parse_date_time_multi_level_column_name(all_parsers, date_parser, warni
1233
1233
"KORD,19990127, 22:00:00, 21:56:00, -0.5900\n "
1234
1234
"KORD,19990127, 23:00:00, 22:56:00, -0.5900"
1235
1235
),
1236
- dict ( header = None , parse_dates = {"actual" : [1 , 2 ], "nominal" : [1 , 3 ]}) ,
1236
+ { " header" : None , " parse_dates" : {"actual" : [1 , 2 ], "nominal" : [1 , 3 ]}} ,
1237
1237
DataFrame (
1238
1238
[
1239
1239
[
0 commit comments