File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2430,16 +2430,14 @@ Read a URL with no options:
2430
2430
2431
2431
.. ipython :: python
2432
2432
2433
- url = " https://www.fdic.gov/bank/individual/failed/banklist.html"
2433
+ url = (
2434
+ " https://raw.githubusercontent.com/pandas-dev/pandas/master/"
2435
+ " pandas/tests/io/data/html/spam.html"
2436
+ )
2434
2437
dfs = pd.read_html(url)
2435
2438
dfs
2436
2439
2437
- .. note ::
2438
-
2439
- The data from the above URL changes every Monday so the resulting data above
2440
- and the data below may be slightly different.
2441
-
2442
- Read in the content of the file from the above URL and pass it to ``read_html ``
2440
+ Read in the content of the "banklist.html" file and pass it to ``read_html ``
2443
2441
as a string:
2444
2442
2445
2443
.. ipython :: python
Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ def test_to_html_compat(self):
129
129
res = self .read_html (out , attrs = {"class" : "dataframe" }, index_col = 0 )[0 ]
130
130
tm .assert_frame_equal (res , df )
131
131
132
+ @pytest .mark .xfail (reason = "Html file was removed" )
132
133
@tm .network
133
134
def test_banklist_url_positional_match (self ):
134
135
url = "https://www.fdic.gov/bank/individual/failed/banklist.html"
@@ -142,6 +143,7 @@ def test_banklist_url_positional_match(self):
142
143
143
144
assert_framelist_equal (df1 , df2 )
144
145
146
+ @pytest .mark .xfail (reason = "Html file was removed" )
145
147
@tm .network
146
148
def test_banklist_url (self ):
147
149
url = "https://www.fdic.gov/bank/individual/failed/banklist.html"
You can’t perform that action at this time.
0 commit comments