@@ -226,7 +226,8 @@ def test_create_detections_table(self):
226
226
tab .tfoot .decompose ()
227
227
tab = re .sub ("," ,r"." ,str (tab ))
228
228
229
- na_values = ['N.A.' ,'N.A' , 'N.C.' ,'N.R.' ,'Not Available' ,'Not Tested' ,"not available" ,"not tested" ,"N.D." ,"-" ]
229
+ na_values = ['N.A.' ,'N.A' , 'N.C.' ,'N.R.' ,'Not Available' ,'Not Tested' ,"not available" ,
230
+ "not tested" ,"N.D." ,"-" ,'Not tested' ,'non testé' ]
230
231
table = pd .read_html (tab ,na_values = na_values )[0 ].dropna (how = "all" )
231
232
table .columns = table .columns .str .lower ()
232
233
table = drop_ah1_columns (table )
@@ -260,7 +261,8 @@ def test_create_number_detections_table(self):
260
261
tab = caption .find_next ('table' )
261
262
tab = re .sub ("," ,"" ,str (tab ))
262
263
263
- na_values = ['N.A.' ,'N.A' , 'N.C.' ,'N.R.' ,'Not Available' ,'Not Tested' ,"not available" ,"not tested" ,"N.D." ,"-" ]
264
+ na_values = ['N.A.' ,'N.A' , 'N.C.' ,'N.R.' ,'Not Available' ,'Not Tested' ,"not available" ,
265
+ "not tested" ,"N.D." ,"-" ,'Not tested' ,'non testé' ]
264
266
table = pd .read_html (tab ,na_values = na_values )[0 ].dropna (how = "all" )
265
267
table .columns = table .columns .str .lower ()
266
268
table = drop_ah1_columns (table )
@@ -295,8 +297,8 @@ def test_create_percent_positive_detection_table(self):
295
297
expected_rsvdata = expected_rsvdata .sort_values (by = ['epiweek' , 'time_value' , 'issue' , 'geo_type' , 'geo_value' ])
296
298
297
299
# get tables from raw html and process before testing the function
298
- na_values = ['N.A.' ,'N.A' , 'N.C.' ,'N.R.' ,'Not Available' ,'Not Tested' ,"not available" ,"not tested" , "N.D." , "-" ]
299
-
300
+ na_values = ['N.A.' ,'N.A' , 'N.C.' ,'N.R.' ,'Not Available' ,'Not Tested' ,"not available" ,
301
+ "not tested" , "N.D." , "-" , 'Not tested' , 'non testé' ]
300
302
flu_caption = [t for t in captions if "Influenza" in t .text ][0 ]
301
303
flu_tab = flu_caption .find_next ('table' )
302
304
flu_tab = re .sub ("," ,"" ,str (flu_tab ))
0 commit comments