Skip to content

Commit 3dd9561

Browse files
Backport PR #38987: Fix bug on master (#38991)
Co-authored-by: patrick <[email protected]>
1 parent 6cdb4e7 commit 3dd9561

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

doc/source/user_guide/io.rst

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

24312431
.. ipython:: python
24322432
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+
)
24342437
dfs = pd.read_html(url)
24352438
dfs
24362439
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``
24432441
as a string:
24442442

24452443
.. ipython:: python

pandas/tests/io/test_html.py

+2
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)