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 @@ -2444,16 +2444,14 @@ Read a URL with no options:
2444
2444
2445
2445
.. ipython :: python
2446
2446
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
+ )
2448
2451
dfs = pd.read_html(url)
2449
2452
dfs
2450
2453
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 ``
2457
2455
as a string:
2458
2456
2459
2457
.. 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