Skip to content

Commit e43dfde

Browse files
mroeschkeyehoshuadimarsky
authored andcommitted
DOC: Convert URL example to static code block (pandas-dev#47540)
1 parent 208e4dd commit e43dfde

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

doc/source/user_guide/io.rst

+19-6
Original file line numberDiff line numberDiff line change
@@ -2559,16 +2559,29 @@ Let's look at a few examples.
25592559

25602560
Read a URL with no options:
25612561

2562-
.. ipython:: python
2562+
.. code-block:: ipython
25632563
2564-
url = "https://www.fdic.gov/resources/resolutions/bank-failures/failed-bank-list"
2565-
dfs = pd.read_html(url)
2566-
dfs
2564+
In [320]: "https://www.fdic.gov/resources/resolutions/bank-failures/failed-bank-list"
2565+
In [321]: pd.read_html(url)
2566+
Out[321]:
2567+
[ Bank NameBank CityCity StateSt ... Acquiring InstitutionAI Closing DateClosing FundFund
2568+
0 Almena State Bank Almena KS ... Equity Bank October 23, 2020 10538
2569+
1 First City Bank of Florida Fort Walton Beach FL ... United Fidelity Bank, fsb October 16, 2020 10537
2570+
2 The First State Bank Barboursville WV ... MVB Bank, Inc. April 3, 2020 10536
2571+
3 Ericson State Bank Ericson NE ... Farmers and Merchants Bank February 14, 2020 10535
2572+
4 City National Bank of New Jersey Newark NJ ... Industrial Bank November 1, 2019 10534
2573+
.. ... ... ... ... ... ... ...
2574+
558 Superior Bank, FSB Hinsdale IL ... Superior Federal, FSB July 27, 2001 6004
2575+
559 Malta National Bank Malta OH ... North Valley Bank May 3, 2001 4648
2576+
560 First Alliance Bank & Trust Co. Manchester NH ... Southern New Hampshire Bank & Trust February 2, 2001 4647
2577+
561 National State Bank of Metropolis Metropolis IL ... Banterra Bank of Marion December 14, 2000 4646
2578+
562 Bank of Honolulu Honolulu HI ... Bank of the Orient October 13, 2000 4645
2579+
2580+
[563 rows x 7 columns]]
25672581
25682582
.. note::
25692583

2570-
The data from the above URL changes every Monday so the resulting data above
2571-
and the data below may be slightly different.
2584+
The data from the above URL changes every Monday so the resulting data above may be slightly different.
25722585

25732586
Read in the content of the file from the above URL and pass it to ``read_html``
25742587
as a string:

0 commit comments

Comments
 (0)