Inthistutorial, wearegoingtobeworkingwith a newdatasettheUSminimumwagebystatefrom 1968 to 2017.
Sothisistheleastamountofmoneyandemployercompayanemployee e organizedbystateandhashighandlowvaluebothinthattimes, termsoramount, andthenalsocalculatedoutusingtheCP I, whichislikethecostofliving, Let's sayfor a reallyquickterm, umandsothey'vegotitinvaluein, like, 2018 valuenumbers.
Butonethingwecandoisjustgoaheadandsavethissowedon't havetodealwiththateveragainandsay, D f 10.2 c s v Andlet's saythathisdatasaysstopminwagedot c s v withtheencodingof u u T f breatheight.
Okay, cool.
Sothatiswhen a quickexampleofah, whywemightusepandastoconvertthings.
SonextWhatwe'regonnadois, uh, the f equals p d dotread C s V andwewilljustreadinthis c S V.
So, uh, let's justdowell, readthatend, ifthathadcool.
SowhatwecansayinsteadiswecanimportnumbpieasMPbecausewe'regonnause n p dotnanandyoushouldhavenumbersshouldalreadybeinstalled.
Ifit's not, Ifyougetanerror, youcanpipinstallnumber I.
But, um, youyoushouldhavegottenumpirewhenyouinstalledpandas, so I don't think I needtosaythat, butjustincase, Okay, sonowwhatwewanttodoisactmenwage, andthenwe'regonnareplaceallinstancesofzerowithnpdotnan.
Sowe'rejustgonnasaynot a number.
I knowzeroisthenumber, butactuallyWhat's happeningiswedon't reallyhaveanydataatall.
I think I don't actuallyseezerosbeingreportedhere, So, umyeah, so I thinkthatourwe'rebetteroffjustreplacingthatwithnot a number, becauseweactuallydon't evenknow.
Anditdefinitelywasn't zero.
I don't thinksurelythosestatesactuallyhave a minimumwage.
Whoknows?
I couldlearnsomethingnew.
Um, I'm prettysure, likewasn't Texasinthere?
Yeah.
Okay, soTexashadminimumwage.
Soanyway, movingalong.
Uh, okay, sowereplaceitwithnot a number, andthenwecouldjustsay, dropin a andthenwe'llsayaxisequalsone.