Skip to content

Commit 85bc22a

Browse files
authored
Revert "Fix bug on master (pandas-dev#38987)"
This reverts commit 68db2d2.
1 parent 74e50ec commit 85bc22a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

doc/source/user_guide/io.rst

+7-5
Original file line numberDiff line numberDiff line change
@@ -2464,14 +2464,16 @@ Read a URL with no options:
24642464

24652465
.. ipython:: python
24662466
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"
24712468
dfs = pd.read_html(url)
24722469
dfs
24732470
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``
24752477
as a string:
24762478

24772479
.. ipython:: python

pandas/tests/io/test_html.py

-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ def test_to_html_compat(self):
134134
res = self.read_html(out, attrs={"class": "dataframe"}, index_col=0)[0]
135135
tm.assert_frame_equal(res, df)
136136

137-
@pytest.mark.xfail(reason="Html file was removed")
138137
@tm.network
139138
def test_banklist_url_positional_match(self):
140139
url = "https://www.fdic.gov/bank/individual/failed/banklist.html"
@@ -148,7 +147,6 @@ def test_banklist_url_positional_match(self):
148147

149148
assert_framelist_equal(df1, df2)
150149

151-
@pytest.mark.xfail(reason="Html file was removed")
152150
@tm.network
153151
def test_banklist_url(self):
154152
url = "https://www.fdic.gov/bank/individual/failed/banklist.html"

0 commit comments

Comments
 (0)