@@ -321,7 +321,7 @@ def test_invalid_table_attrs(self):
321
321
url = self .banklist_data
322
322
with pytest .raises (ValueError , match = "No tables found" ):
323
323
self .read_html (
324
- url , "First Federal Bank of Florida" , attrs = {"id" : "tasdfable" }
324
+ url , match = "First Federal Bank of Florida" , attrs = {"id" : "tasdfable" }
325
325
)
326
326
327
327
def _bank_data (self , * args , ** kwargs ):
@@ -573,7 +573,9 @@ def try_remove_ws(x):
573
573
except AttributeError :
574
574
return x
575
575
576
- df = self .read_html (self .banklist_data , "Metcalf" , attrs = {"id" : "table" })[0 ]
576
+ df = self .read_html (self .banklist_data , match = "Metcalf" , attrs = {"id" : "table" })[
577
+ 0
578
+ ]
577
579
ground_truth = read_csv (
578
580
datapath ("io" , "data" , "csv" , "banklist.csv" ),
579
581
converters = {"Updated Date" : Timestamp , "Closing Date" : Timestamp },
@@ -883,7 +885,7 @@ def test_wikipedia_states_table(self, datapath):
883
885
884
886
def test_wikipedia_states_multiindex (self , datapath ):
885
887
data = datapath ("io" , "data" , "html" , "wikipedia_states.html" )
886
- result = self .read_html (data , "Arizona" , index_col = 0 )[0 ]
888
+ result = self .read_html (data , match = "Arizona" , index_col = 0 )[0 ]
887
889
assert result .shape == (60 , 11 )
888
890
assert "Unnamed" in result .columns [- 1 ][1 ]
889
891
assert result .columns .nlevels == 2
0 commit comments