@@ -2559,16 +2559,29 @@ Let's look at a few examples.
2559
2559
2560
2560
Read a URL with no options:
2561
2561
2562
- .. ipython :: python
2562
+ .. code-block :: ipython
2563
2563
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]]
2567
2581
2568
2582
.. note ::
2569
2583
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.
2572
2585
2573
2586
Read in the content of the file from the above URL and pass it to ``read_html ``
2574
2587
as a string:
0 commit comments