{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "___\n", "\n", " \n", "___" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "** Typically we will just be either reading csv files directly or using pandas-datareader or quandl. Consider this lecture just a quick overview of what is possible with pandas (we won't be working with SQL or excel files in this course) **" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Data Input and Output\n", "\n", "This notebook is the reference code for getting input and output, pandas can read a variety of file types using its pd.read_ methods. Let's take a look at the most common data types:" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [], "source": [ "import numpy as np\n", "import pandas as pd" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## CSV\n", "\n", "### CSV Input" ] }, { "cell_type": "code", "execution_count": 25, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
abcd
00123
14567
2891011
312131415
\n", "
" ], "text/plain": [ " a b c d\n", "0 0 1 2 3\n", "1 4 5 6 7\n", "2 8 9 10 11\n", "3 12 13 14 15" ] }, "execution_count": 25, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df = pd.read_csv('example')\n", "df" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### CSV Output" ] }, { "cell_type": "code", "execution_count": 24, "metadata": { "collapsed": true }, "outputs": [], "source": [ "df.to_csv('example',index=False)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Excel\n", "Pandas can read and write excel files, keep in mind, this only imports data. Not formulas or images, having images or macros may cause this read_excel method to crash. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Excel Input" ] }, { "cell_type": "code", "execution_count": 35, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
abcd
00123
14567
2891011
312131415
\n", "
" ], "text/plain": [ " a b c d\n", "0 0 1 2 3\n", "1 4 5 6 7\n", "2 8 9 10 11\n", "3 12 13 14 15" ] }, "execution_count": 35, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.read_excel('Excel_Sample.xlsx',sheetname='Sheet1')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Excel Output" ] }, { "cell_type": "code", "execution_count": 33, "metadata": {}, "outputs": [], "source": [ "df.to_excel('Excel_Sample.xlsx',sheet_name='Sheet1')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## HTML\n", "\n", "You may need to install htmllib5,lxml, and BeautifulSoup4. In your terminal/command prompt run:\n", "\n", " conda install lxml\n", " conda install html5lib\n", " conda install BeautifulSoup4\n", "\n", "Then restart Jupyter Notebook.\n", "(or use pip install if you aren't using the Anaconda Distribution)\n", "\n", "Pandas can read table tabs off of html. For example:" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### HTML Input\n", "\n", "Pandas read_html function will read tables off of a webpage and return a list of DataFrame objects:" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "df = pd.read_html('http://www.fdic.gov/bank/individual/failed/banklist.html')" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
Bank NameCitySTCERTAcquiring InstitutionClosing DateUpdated DateLoss Share TypeAgreement TerminatedTermination Date
0First CornerStone BankKing of PrussiaPA35312First-Citizens Bank & Trust CompanyMay 6, 2016July 12, 2016noneNaNNaN
1Trust Company BankMemphisTN9956The Bank of Fayette CountyApril 29, 2016August 4, 2016noneNaNNaN
2North Milwaukee State BankMilwaukeeWI20364First-Citizens Bank & Trust CompanyMarch 11, 2016June 16, 2016noneNaNNaN
3Hometown National BankLongviewWA35156Twin City BankOctober 2, 2015April 13, 2016noneNaNNaN
4The Bank of GeorgiaPeachtree CityGA35259Fidelity BankOctober 2, 2015April 13, 2016noneNaNNaN
5Premier BankDenverCO34112United Fidelity Bank, fsbJuly 10, 2015July 12, 2016noneNaNNaN
6Edgebrook BankChicagoIL57772Republic Bank of ChicagoMay 8, 2015July 12, 2016noneNaNNaN
7Doral BankEn EspanolSan JuanPR32102Banco Popular de Puerto RicoFebruary 27, 2015May 13, 2015noneNaNNaN
8Capitol City Bank & Trust CompanyAtlantaGA33938First-Citizens Bank & Trust CompanyFebruary 13, 2015April 21, 2015noneNaNNaN
9Highland Community BankChicagoIL20290United Fidelity Bank, fsbJanuary 23, 2015April 21, 2015noneNaNNaN
10First National Bank of CrestviewCrestviewFL17557First NBC BankJanuary 16, 2015January 15, 2016noneNaNNaN
11Northern Star BankMankatoMN34983BankVistaDecember 19, 2014January 6, 2016noneNaNNaN
12Frontier Bank, FSB D/B/A El Paseo BankPalm DesertCA34738Bank of Southern California, N.A.November 7, 2014January 6, 2016noneNaNNaN
13The National Republic Bank of ChicagoChicagoIL916State Bank of TexasOctober 24, 2014January 6, 2016noneNaNNaN
14NBRS FinancialRising SunMD4862Howard BankOctober 17, 2014March 26, 2015noneNaNNaN
15GreenChoice Bank, fsbChicagoIL28462Providence Bank, LLCJuly 25, 2014July 28, 2015noneNaNNaN
16Eastside Commercial BankConyersGA58125Community & Southern BankJuly 18, 2014July 11, 2016noneNaNNaN
17The Freedom State BankFreedomOK12483Alva State Bank & Trust CompanyJune 27, 2014March 25, 2016noneNaNNaN
18Valley BankFort LauderdaleFL21793Landmark Bank, National AssociationJune 20, 2014June 29, 2015noneNaNNaN
19Valley BankMolineIL10450Great Southern BankJune 20, 2014June 26, 2015noneNaNNaN
20Slavie Federal Savings BankBel AirMD32368Bay Bank, FSBMay 30, 2014June 15, 2015noneNaNNaN
21Columbia Savings BankCincinnatiOH32284United Fidelity Bank, fsbMay 23, 2014May 28, 2015noneNaNNaN
22AztecAmerica Bank En EspanolBerwynIL57866Republic Bank of ChicagoMay 16, 2014July 18, 2014noneNaNNaN
23Allendale County BankFairfaxSC15062Palmetto State BankApril 25, 2014July 18, 2014noneNaNNaN
24Vantage Point BankHorshamPA58531First Choice BankFebruary 28, 2014March 3, 2015noneNaNNaN
25Millennium Bank, National AssociationSterlingVA35096WashingtonFirst BankFebruary 28, 2014March 03, 2015noneNaNNaN
26Syringa BankBoiseID34296Sunwest BankJanuary 31, 2014April 12, 2016noneNaNNaN
27The Bank of UnionEl RenoOK17967BancFirstJanuary 24, 2014March 25, 2016noneNaNNaN
28DuPage National BankWest ChicagoIL5732Republic Bank of ChicagoJanuary 17, 2014February 19, 2015noneNaNNaN
29Texas Community Bank, National AssociationThe WoodlandsTX57431Spirit of Texas Bank, SSBDecember 13, 2013December 29, 2014noneNaNNaN
.................................
515ANB Financial, NABentonvilleAR33901Pulaski Bank and Trust CompanyMay 9, 2008August 28, 2012noneNaNNaN
516Hume BankHumeMO1971Security BankMarch 7, 2008August 28, 2012noneNaNNaN
517Douglass National BankKansas CityMO24660Liberty Bank and Trust CompanyJanuary 25, 2008October 26, 2012noneNaNNaN
518Miami Valley BankLakeviewOH16848The Citizens Banking CompanyOctober 4, 2007August 28, 2012noneNaNNaN
519NetBankAlpharettaGA32575ING DIRECTSeptember 28, 2007August 28, 2012noneNaNNaN
520Metropolitan Savings BankPittsburghPA35353Allegheny Valley Bank of PittsburghFebruary 2, 2007October 27, 2010noneNaNNaN
521Bank of EphraimEphraimUT1249Far West BankJune 25, 2004April 9, 2008noneNaNNaN
522Reliance BankWhite PlainsNY26778Union State BankMarch 19, 2004April 9, 2008noneNaNNaN
523Guaranty National Bank of TallahasseeTallahasseeFL26838Hancock Bank of FloridaMarch 12, 2004June 5, 2012noneNaNNaN
524Dollar Savings BankNewarkNJ31330No AcquirerFebruary 14, 2004April 9, 2008noneNaNNaN
525Pulaski Savings BankPhiladelphiaPA27203Earthstar BankNovember 14, 2003July 22, 2005noneNaNNaN
526First National Bank of BlanchardvilleBlanchardvilleWI11639The Park BankMay 9, 2003June 5, 2012noneNaNNaN
527Southern Pacific BankTorranceCA27094Beal BankFebruary 7, 2003October 20, 2008noneNaNNaN
528Farmers Bank of CheneyvilleCheneyvilleLA16445Sabine State Bank & TrustDecember 17, 2002October 20, 2004noneNaNNaN
529Bank of AlamoAlamoTN9961No AcquirerNovember 8, 2002March 18, 2005noneNaNNaN
530AmTrade International BankEn EspanolAtlantaGA33784No AcquirerSeptember 30, 2002September 11, 2006noneNaNNaN
531Universal Federal Savings BankChicagoIL29355Chicago Community BankJune 27, 2002April 9, 2008noneNaNNaN
532Connecticut Bank of CommerceStamfordCT19183Hudson United BankJune 26, 2002February 14, 2012noneNaNNaN
533New Century BankShelby TownshipMI34979No AcquirerMarch 28, 2002March 18, 2005noneNaNNaN
534Net 1st National BankBoca RatonFL26652Bank Leumi USAMarch 1, 2002April 9, 2008noneNaNNaN
535NextBank, NAPhoenixAZ22314No AcquirerFebruary 7, 2002February 5, 2015noneNaNNaN
536Oakwood Deposit Bank Co.OakwoodOH8966The State Bank & Trust CompanyFebruary 1, 2002October 25, 2012noneNaNNaN
537Bank of Sierra BlancaSierra BlancaTX22002The Security State Bank of PecosJanuary 18, 2002November 6, 2003noneNaNNaN
538Hamilton Bank, NAEn EspanolMiamiFL24382Israel Discount Bank of New YorkJanuary 11, 2002September 21, 2015noneNaNNaN
539Sinclair National BankGravetteAR34248Delta Trust & BankSeptember 7, 2001February 10, 2004noneNaNNaN
540Superior Bank, FSBHinsdaleIL32646Superior Federal, FSBJuly 27, 2001August 19, 2014noneNaNNaN
541Malta National BankMaltaOH6629North Valley BankMay 3, 2001November 18, 2002noneNaNNaN
542First Alliance Bank & Trust Co.ManchesterNH34264Southern New Hampshire Bank & TrustFebruary 2, 2001February 18, 2003noneNaNNaN
543National State Bank of MetropolisMetropolisIL3815Banterra Bank of MarionDecember 14, 2000March 17, 2005noneNaNNaN
544Bank of HonoluluHonoluluHI21029Bank of the OrientOctober 13, 2000March 17, 2005noneNaNNaN
\n", "

545 rows × 10 columns

\n", "
" ], "text/plain": [ " Bank Name City ST CERT \\\n", "0 First CornerStone Bank King of Prussia PA 35312 \n", "1 Trust Company Bank Memphis TN 9956 \n", "2 North Milwaukee State Bank Milwaukee WI 20364 \n", "3 Hometown National Bank Longview WA 35156 \n", "4 The Bank of Georgia Peachtree City GA 35259 \n", "5 Premier Bank Denver CO 34112 \n", "6 Edgebrook Bank Chicago IL 57772 \n", "7 Doral BankEn Espanol San Juan PR 32102 \n", "8 Capitol City Bank & Trust Company Atlanta GA 33938 \n", "9 Highland Community Bank Chicago IL 20290 \n", "10 First National Bank of Crestview Crestview FL 17557 \n", "11 Northern Star Bank Mankato MN 34983 \n", "12 Frontier Bank, FSB D/B/A El Paseo Bank Palm Desert CA 34738 \n", "13 The National Republic Bank of Chicago Chicago IL 916 \n", "14 NBRS Financial Rising Sun MD 4862 \n", "15 GreenChoice Bank, fsb Chicago IL 28462 \n", "16 Eastside Commercial Bank Conyers GA 58125 \n", "17 The Freedom State Bank Freedom OK 12483 \n", "18 Valley Bank Fort Lauderdale FL 21793 \n", "19 Valley Bank Moline IL 10450 \n", "20 Slavie Federal Savings Bank Bel Air MD 32368 \n", "21 Columbia Savings Bank Cincinnati OH 32284 \n", "22 AztecAmerica Bank En Espanol Berwyn IL 57866 \n", "23 Allendale County Bank Fairfax SC 15062 \n", "24 Vantage Point Bank Horsham PA 58531 \n", "25 Millennium Bank, National Association Sterling VA 35096 \n", "26 Syringa Bank Boise ID 34296 \n", "27 The Bank of Union El Reno OK 17967 \n", "28 DuPage National Bank West Chicago IL 5732 \n", "29 Texas Community Bank, National Association The Woodlands TX 57431 \n", ".. ... ... .. ... \n", "515 ANB Financial, NA Bentonville AR 33901 \n", "516 Hume Bank Hume MO 1971 \n", "517 Douglass National Bank Kansas City MO 24660 \n", "518 Miami Valley Bank Lakeview OH 16848 \n", "519 NetBank Alpharetta GA 32575 \n", "520 Metropolitan Savings Bank Pittsburgh PA 35353 \n", "521 Bank of Ephraim Ephraim UT 1249 \n", "522 Reliance Bank White Plains NY 26778 \n", "523 Guaranty National Bank of Tallahassee Tallahassee FL 26838 \n", "524 Dollar Savings Bank Newark NJ 31330 \n", "525 Pulaski Savings Bank Philadelphia PA 27203 \n", "526 First National Bank of Blanchardville Blanchardville WI 11639 \n", "527 Southern Pacific Bank Torrance CA 27094 \n", "528 Farmers Bank of Cheneyville Cheneyville LA 16445 \n", "529 Bank of Alamo Alamo TN 9961 \n", "530 AmTrade International BankEn Espanol Atlanta GA 33784 \n", "531 Universal Federal Savings Bank Chicago IL 29355 \n", "532 Connecticut Bank of Commerce Stamford CT 19183 \n", "533 New Century Bank Shelby Township MI 34979 \n", "534 Net 1st National Bank Boca Raton FL 26652 \n", "535 NextBank, NA Phoenix AZ 22314 \n", "536 Oakwood Deposit Bank Co. Oakwood OH 8966 \n", "537 Bank of Sierra Blanca Sierra Blanca TX 22002 \n", "538 Hamilton Bank, NAEn Espanol Miami FL 24382 \n", "539 Sinclair National Bank Gravette AR 34248 \n", "540 Superior Bank, FSB Hinsdale IL 32646 \n", "541 Malta National Bank Malta OH 6629 \n", "542 First Alliance Bank & Trust Co. Manchester NH 34264 \n", "543 National State Bank of Metropolis Metropolis IL 3815 \n", "544 Bank of Honolulu Honolulu HI 21029 \n", "\n", " Acquiring Institution Closing Date \\\n", "0 First-Citizens Bank & Trust Company May 6, 2016 \n", "1 The Bank of Fayette County April 29, 2016 \n", "2 First-Citizens Bank & Trust Company March 11, 2016 \n", "3 Twin City Bank October 2, 2015 \n", "4 Fidelity Bank October 2, 2015 \n", "5 United Fidelity Bank, fsb July 10, 2015 \n", "6 Republic Bank of Chicago May 8, 2015 \n", "7 Banco Popular de Puerto Rico February 27, 2015 \n", "8 First-Citizens Bank & Trust Company February 13, 2015 \n", "9 United Fidelity Bank, fsb January 23, 2015 \n", "10 First NBC Bank January 16, 2015 \n", "11 BankVista December 19, 2014 \n", "12 Bank of Southern California, N.A. November 7, 2014 \n", "13 State Bank of Texas October 24, 2014 \n", "14 Howard Bank October 17, 2014 \n", "15 Providence Bank, LLC July 25, 2014 \n", "16 Community & Southern Bank July 18, 2014 \n", "17 Alva State Bank & Trust Company June 27, 2014 \n", "18 Landmark Bank, National Association June 20, 2014 \n", "19 Great Southern Bank June 20, 2014 \n", "20 Bay Bank, FSB May 30, 2014 \n", "21 United Fidelity Bank, fsb May 23, 2014 \n", "22 Republic Bank of Chicago May 16, 2014 \n", "23 Palmetto State Bank April 25, 2014 \n", "24 First Choice Bank February 28, 2014 \n", "25 WashingtonFirst Bank February 28, 2014 \n", "26 Sunwest Bank January 31, 2014 \n", "27 BancFirst January 24, 2014 \n", "28 Republic Bank of Chicago January 17, 2014 \n", "29 Spirit of Texas Bank, SSB December 13, 2013 \n", ".. ... ... \n", "515 Pulaski Bank and Trust Company May 9, 2008 \n", "516 Security Bank March 7, 2008 \n", "517 Liberty Bank and Trust Company January 25, 2008 \n", "518 The Citizens Banking Company October 4, 2007 \n", "519 ING DIRECT September 28, 2007 \n", "520 Allegheny Valley Bank of Pittsburgh February 2, 2007 \n", "521 Far West Bank June 25, 2004 \n", "522 Union State Bank March 19, 2004 \n", "523 Hancock Bank of Florida March 12, 2004 \n", "524 No Acquirer February 14, 2004 \n", "525 Earthstar Bank November 14, 2003 \n", "526 The Park Bank May 9, 2003 \n", "527 Beal Bank February 7, 2003 \n", "528 Sabine State Bank & Trust December 17, 2002 \n", "529 No Acquirer November 8, 2002 \n", "530 No Acquirer September 30, 2002 \n", "531 Chicago Community Bank June 27, 2002 \n", "532 Hudson United Bank June 26, 2002 \n", "533 No Acquirer March 28, 2002 \n", "534 Bank Leumi USA March 1, 2002 \n", "535 No Acquirer February 7, 2002 \n", "536 The State Bank & Trust Company February 1, 2002 \n", "537 The Security State Bank of Pecos January 18, 2002 \n", "538 Israel Discount Bank of New York January 11, 2002 \n", "539 Delta Trust & Bank September 7, 2001 \n", "540 Superior Federal, FSB July 27, 2001 \n", "541 North Valley Bank May 3, 2001 \n", "542 Southern New Hampshire Bank & Trust February 2, 2001 \n", "543 Banterra Bank of Marion December 14, 2000 \n", "544 Bank of the Orient October 13, 2000 \n", "\n", " Updated Date Loss Share Type Agreement Terminated Termination Date \n", "0 July 12, 2016 none NaN NaN \n", "1 August 4, 2016 none NaN NaN \n", "2 June 16, 2016 none NaN NaN \n", "3 April 13, 2016 none NaN NaN \n", "4 April 13, 2016 none NaN NaN \n", "5 July 12, 2016 none NaN NaN \n", "6 July 12, 2016 none NaN NaN \n", "7 May 13, 2015 none NaN NaN \n", "8 April 21, 2015 none NaN NaN \n", "9 April 21, 2015 none NaN NaN \n", "10 January 15, 2016 none NaN NaN \n", "11 January 6, 2016 none NaN NaN \n", "12 January 6, 2016 none NaN NaN \n", "13 January 6, 2016 none NaN NaN \n", "14 March 26, 2015 none NaN NaN \n", "15 July 28, 2015 none NaN NaN \n", "16 July 11, 2016 none NaN NaN \n", "17 March 25, 2016 none NaN NaN \n", "18 June 29, 2015 none NaN NaN \n", "19 June 26, 2015 none NaN NaN \n", "20 June 15, 2015 none NaN NaN \n", "21 May 28, 2015 none NaN NaN \n", "22 July 18, 2014 none NaN NaN \n", "23 July 18, 2014 none NaN NaN \n", "24 March 3, 2015 none NaN NaN \n", "25 March 03, 2015 none NaN NaN \n", "26 April 12, 2016 none NaN NaN \n", "27 March 25, 2016 none NaN NaN \n", "28 February 19, 2015 none NaN NaN \n", "29 December 29, 2014 none NaN NaN \n", ".. ... ... ... ... \n", "515 August 28, 2012 none NaN NaN \n", "516 August 28, 2012 none NaN NaN \n", "517 October 26, 2012 none NaN NaN \n", "518 August 28, 2012 none NaN NaN \n", "519 August 28, 2012 none NaN NaN \n", "520 October 27, 2010 none NaN NaN \n", "521 April 9, 2008 none NaN NaN \n", "522 April 9, 2008 none NaN NaN \n", "523 June 5, 2012 none NaN NaN \n", "524 April 9, 2008 none NaN NaN \n", "525 July 22, 2005 none NaN NaN \n", "526 June 5, 2012 none NaN NaN \n", "527 October 20, 2008 none NaN NaN \n", "528 October 20, 2004 none NaN NaN \n", "529 March 18, 2005 none NaN NaN \n", "530 September 11, 2006 none NaN NaN \n", "531 April 9, 2008 none NaN NaN \n", "532 February 14, 2012 none NaN NaN \n", "533 March 18, 2005 none NaN NaN \n", "534 April 9, 2008 none NaN NaN \n", "535 February 5, 2015 none NaN NaN \n", "536 October 25, 2012 none NaN NaN \n", "537 November 6, 2003 none NaN NaN \n", "538 September 21, 2015 none NaN NaN \n", "539 February 10, 2004 none NaN NaN \n", "540 August 19, 2014 none NaN NaN \n", "541 November 18, 2002 none NaN NaN \n", "542 February 18, 2003 none NaN NaN \n", "543 March 17, 2005 none NaN NaN \n", "544 March 17, 2005 none NaN NaN \n", "\n", "[545 rows x 10 columns]" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df[0]" ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "____" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Great Job!" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.1" } }, "nbformat": 4, "nbformat_minor": 1 }