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 @@ -2464,14 +2464,16 @@ Read a URL with no options:
2464
2464
2465
2465
.. ipython :: python
2466
2466
2467
- url = (
2468
- " https://raw.githubusercontent.com/pandas-dev/pandas/master/"
2469
- " pandas/tests/io/data/html/spam.html"
2470
- )
2467
+ url = " https://www.fdic.gov/bank/individual/failed/banklist.html"
2471
2468
dfs = pd.read_html(url)
2472
2469
dfs
2473
2470
2474
- Read in the content of the "banklist.html" file and pass it to ``read_html ``
2471
+ .. note ::
2472
+
2473
+ The data from the above URL changes every Monday so the resulting data above
2474
+ and the data below may be slightly different.
2475
+
2476
+ Read in the content of the file from the above URL and pass it to ``read_html ``
2475
2477
as a string:
2476
2478
2477
2479
.. ipython :: python
Original file line number Diff line number Diff line change @@ -134,7 +134,6 @@ def test_to_html_compat(self):
134
134
res = self .read_html (out , attrs = {"class" : "dataframe" }, index_col = 0 )[0 ]
135
135
tm .assert_frame_equal (res , df )
136
136
137
- @pytest .mark .xfail (reason = "Html file was removed" )
138
137
@tm .network
139
138
def test_banklist_url_positional_match (self ):
140
139
url = "https://www.fdic.gov/bank/individual/failed/banklist.html"
@@ -148,7 +147,6 @@ def test_banklist_url_positional_match(self):
148
147
149
148
assert_framelist_equal (df1 , df2 )
150
149
151
- @pytest .mark .xfail (reason = "Html file was removed" )
152
150
@tm .network
153
151
def test_banklist_url (self ):
154
152
url = "https://www.fdic.gov/bank/individual/failed/banklist.html"
You can’t perform that action at this time.
0 commit comments