File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2444,16 +2444,14 @@ Read a URL with no options:
24442444
24452445.. ipython :: python
24462446
2447- url = " https://www.fdic.gov/bank/individual/failed/banklist.html"
2447+ url = (
2448+ " https://raw.githubusercontent.com/pandas-dev/pandas/master/"
2449+ " pandas/tests/io/data/html/spam.html"
2450+ )
24482451 dfs = pd.read_html(url)
24492452 dfs
24502453
2451- .. note ::
2452-
2453- The data from the above URL changes every Monday so the resulting data above
2454- and the data below may be slightly different.
2455-
2456- Read in the content of the file from the above URL and pass it to ``read_html ``
2454+ Read in the content of the "banklist.html" file and pass it to ``read_html ``
24572455as a string:
24582456
24592457.. ipython :: python
Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ def test_to_html_compat(self):
129129 res = self .read_html (out , attrs = {"class" : "dataframe" }, index_col = 0 )[0 ]
130130 tm .assert_frame_equal (res , df )
131131
132+ @pytest .mark .xfail (reason = "Html file was removed" )
132133 @tm .network
133134 def test_banklist_url_positional_match (self ):
134135 url = "https://www.fdic.gov/bank/individual/failed/banklist.html"
@@ -142,6 +143,7 @@ def test_banklist_url_positional_match(self):
142143
143144 assert_framelist_equal (df1 , df2 )
144145
146+ @pytest .mark .xfail (reason = "Html file was removed" )
145147 @tm .network
146148 def test_banklist_url (self ):
147149 url = "https://www.fdic.gov/bank/individual/failed/banklist.html"
You can’t perform that action at this time.
0 commit comments