From 7a198320ca604bf4b6db5140a728897f2f18d58d Mon Sep 17 00:00:00 2001 From: Hector Cuesta-Arvizu Date: Fri, 30 Aug 2013 11:49:37 -0500 Subject: [PATCH] Chapters 2 and 3 --- .gitattributes | 22 + .gitignore | 215 ++++ Chapter2/OpenRefineExcelData.csv | 162 +++ Chapter2/Regex.py | 25 + Chapter2/WebScraping.py | 19 + Chapter2/csvReader.py | 7 + Chapter2/csvReaderNumpy.py | 8 + Chapter2/jsonReader.py | 6 + Chapter2/pokemon.csv | 298 +++++ Chapter2/pokemon.json | 1784 ++++++++++++++++++++++++++++++ Chapter2/pokemonXml.xml | 70 ++ Chapter3/Barchart.html | 85 ++ Chapter3/BarchartAnimated.html | 83 ++ Chapter3/Line-chart.html | 77 ++ Chapter3/MultiLine-chart.html | 106 ++ Chapter3/Pie-chart.html | 58 + Chapter3/Scatterplot.html | 56 + Chapter3/SumJson.py | 27 + Chapter3/line.tsv | 595 ++++++++++ Chapter3/pokemonByType.csv | 17 + Chapter3/pokemonByType.tsv | 17 + 21 files changed, 3737 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Chapter2/OpenRefineExcelData.csv create mode 100644 Chapter2/Regex.py create mode 100644 Chapter2/WebScraping.py create mode 100644 Chapter2/csvReader.py create mode 100644 Chapter2/csvReaderNumpy.py create mode 100644 Chapter2/jsonReader.py create mode 100644 Chapter2/pokemon.csv create mode 100644 Chapter2/pokemon.json create mode 100644 Chapter2/pokemonXml.xml create mode 100644 Chapter3/Barchart.html create mode 100644 Chapter3/BarchartAnimated.html create mode 100644 Chapter3/Line-chart.html create mode 100644 Chapter3/MultiLine-chart.html create mode 100644 Chapter3/Pie-chart.html create mode 100644 Chapter3/Scatterplot.html create mode 100644 Chapter3/SumJson.py create mode 100644 Chapter3/line.tsv create mode 100644 Chapter3/pokemonByType.csv create mode 100644 Chapter3/pokemonByType.tsv diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..412eeda --- /dev/null +++ b/.gitattributes @@ -0,0 +1,22 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Custom for Visual Studio +*.cs diff=csharp +*.sln merge=union +*.csproj merge=union +*.vbproj merge=union +*.fsproj merge=union +*.dbproj merge=union + +# Standard to msysgit +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b9d6bd9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,215 @@ +################# +## Eclipse +################# + +*.pydevproject +.project +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.classpath +.settings/ +.loadpath + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# CDT-specific +.cproject + +# PDT-specific +.buildpath + + +################# +## Visual Studio +################# + +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.sln.docstates + +# Build results + +[Dd]ebug/ +[Rr]elease/ +x64/ +build/ +[Bb]in/ +[Oo]bj/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +*_i.c +*_p.c +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.log +*.scc + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf +*.cachefile + +# Visual Studio profiler +*.psess +*.vsp +*.vspx + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# NCrunch +*.ncrunch* +.*crunch*.local.xml + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.Publish.xml +*.pubxml + +# NuGet Packages Directory +## TODO: If you have NuGet Package Restore enabled, uncomment the next line +#packages/ + +# Windows Azure Build Output +csx +*.build.csdef + +# Windows Store app package directory +AppPackages/ + +# Others +sql/ +*.Cache +ClientBin/ +[Ss]tyle[Cc]op.* +~$* +*~ +*.dbmdl +*.[Pp]ublish.xml +*.pfx +*.publishsettings + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file to a newer +# Visual Studio version. Backup files are not needed, because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +App_Data/*.mdf +App_Data/*.ldf + +############# +## Windows detritus +############# + +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Mac crap +.DS_Store + + +############# +## Python +############# + +*.py[co] + +# Packages +*.egg +*.egg-info +dist/ +build/ +eggs/ +parts/ +var/ +sdist/ +develop-eggs/ +.installed.cfg + +# Installer logs +pip-log.txt + +# Unit test / coverage reports +.coverage +.tox + +#Translations +*.mo + +#Mr Developer +.mr.developer.cfg diff --git a/Chapter2/OpenRefineExcelData.csv b/Chapter2/OpenRefineExcelData.csv new file mode 100644 index 0000000..0598857 --- /dev/null +++ b/Chapter2/OpenRefineExcelData.csv @@ -0,0 +1,162 @@ +Documento,Pos.,Denominación,Fecha doc.,Ctd.conf.,Nº ped.cliente,Fe.entrega,Solic.,Ctd.ped., Prc.neto, por,UM, Valor neto, Valor neto,Se,Ctd.ped. +,,,,,,,,,,,,,,, +7295491,10,Buchanan Red Seal 750ml 06x01,04.05.2010,0,FROZA_REDSEAL,12.05.2010,6027282,18,"1,190.95",1,BTL,"21,437.10","21,437.10",32,18 +7295489,10,J Wlkr Red 750 ml Lata AIG 12x01,04.05.2010,0,829873/27536,10.05.2010,185343,492,124.54,1,BTL,"65,258.34","61,273.10",32,492 +7295489,20,GUINNESS BTL DR 330ML BTL 01x24,04.05.2010,0,829873/27536,10.05.2010,185343,96,13.81,1,BTL,"65,258.34","1,325.30",31,96 +7295489,30,Guinness Lata DR 440ml 24x01,04.05.2010,0,829873/27536,10.05.2010,185343,144,18.47,1,BTL,"65,258.34","2,659.94",31,144 +7295250,10,Guinness Lata DR 440ml 24x01,04.05.2010,0,300543874,09.05.2010,6024071,9,13.68,1,BTL,"5,163.26","2,954.88",31,9 +7295250,20,GUINNESS BTL DR 330ML BTL 01x24,04.05.2010,0,300543874,09.05.2010,6024071,9,10.22,1,BTL,"5,163.26","2,208.38",31,9 +7295236,10,BAILEYS ORIGINAL 750ML 12x01,04.05.2010,0,300543873,09.05.2010,6024071,117,77.43,1,BTL,"120,712.53","108,706.80",32,117 +7295236,20,Sheridans 750ml 06x01,04.05.2010,0,300543873,09.05.2010,6024071,1,142.72,1,BTL,"120,712.53",856.31,32,1 +7295236,30,Baileys Flavours Mint Choco 750ml 12x01,04.05.2010,0,300543873,09.05.2010,6024071,4,77.43,1,BTL,"120,712.53","3,716.47",32,4 +7295236,40,Baileys Flavours Caramel 750ml 12x01,04.05.2010,0,300543873,09.05.2010,6024071,8,77.43,1,BTL,"120,712.53","7,432.95",32,8 +7295212,10,Buchanan Deluxe 750ml 12x01,04.05.2010,0,300543872,09.05.2010,6024071,139,182.66,1,BTL,"991,417.92","304,683.55",32,139 +7295212,20,Buchanan Sr 18y 750ml 06x01,04.05.2010,0,300543872,09.05.2010,6024071,6,376.47,1,BTL,"991,417.92","13,552.79",32,6 +7295212,30,CptMrg OSR 750ml 12x01 relay / Lgut,04.05.2010,0,300543872,09.05.2010,6024071,41,46.28,1,BTL,"991,417.92","22,770.55",32,41 +7295212,40,Ciroc 750ml 06x01,04.05.2010,0,300543872,09.05.2010,6024071,1,159.1,1,BTL,"991,417.92",954.59,32,1 +7295212,50,JWlkr Red 750ml MIDAS C/IBC 12x01,04.05.2010,0,300543872,09.05.2010,6024071,438,92.23,1,BTL,"991,417.92","484,771.39",32,438 +7295212,60,JW Black Label 750ml 12x01,04.05.2010,0,300543872,09.05.2010,6024071,27,173.04,1,BTL,"991,417.92","56,064.18",32,27 +7295212,70,Vat 69 750ml 12x01,04.05.2010,0,300543872,09.05.2010,6024071,2,43.95,1,BTL,"991,417.92","1,054.77",32,2 +7295212,80,J&B Rare 750 ml con 8 Canciones 12x01,04.05.2010,0,300543872,09.05.2010,6024071,119,75.33,1,BTL,"991,417.92","107,566.10",32,119 +7295150,10,Ciroc 750ml 06x01,04.05.2010,0,300541950,08.05.2010,6024071,2,159.1,1,BTL,"8,138.53","1,909.18",32,2 +7295150,20,JW Black Label 750ml 12x01,04.05.2010,0,300541950,08.05.2010,6024071,3,173.04,1,BTL,"8,138.53","6,229.35",32,3 +7294954,10,Buchanan Sr 18y 750ml 06x01,04.05.2010,0,829378/27536,09.05.2010,173503,12,376.47,1,BTL,"383,591.30","4,517.60",32,12 +7294954,20,J&B Rare 750ml 12x01,04.05.2010,0,829378/27536,09.05.2010,173503,288,75.33,1,BTL,"383,591.30","21,694.00",32,288 +7294954,30,Buchanan Deluxe 750ml 12x01,04.05.2010,0,829378/27536,09.05.2010,173503,504,182.66,1,BTL,"383,591.30","92,062.66",32,504 +7294954,40,JW Black Label 750ml 12x01,04.05.2010,0,829378/27536,09.05.2010,173503,252,173.04,1,BTL,"383,591.30","43,605.48",32,252 +7294954,50,J Wlkr Red 750 ml Lata AIG 12x01,04.05.2010,0,829378/27536,09.05.2010,173503,"1,440",124.54,1,BTL,"383,591.30","179,335.90",32,"1,440" +7294954,60,BAILEYS ORIGINAL 750ML 12x01,04.05.2010,0,829378/27536,09.05.2010,173503,108,77.43,1,BTL,"383,591.30","8,362.06",32,108 +7294954,70,GUINNESS BTL DR 330ML BTL 01x24,04.05.2010,0,829378/27536,09.05.2010,173503,216,10.22,1,BTL,"383,591.30","2,208.38",31,216 +7294954,80,Guinness Lata DR 440ml 24x01,04.05.2010,0,829378/27536,09.05.2010,173503,144,13.68,1,BTL,"383,591.30","1,969.92",31,144 +7294954,90,Baileys Flavours Mint Choco 750ml 12x01,04.05.2010,0,829378/27536,09.05.2010,173503,72,108.78,1,BTL,"383,591.30","7,832.16",32,72 +7294954,100,Baileys Flavours Caramel 750ml 12x01,04.05.2010,0,829378/27536,09.05.2010,173503,60,77.43,1,BTL,"383,591.30","4,645.59",32,60 +7294954,110,Old Parr 750ml 12x01,04.05.2010,0,829378/27536,09.05.2010,173503,84,153.07,1,BTL,"383,591.30","12,858.05",32,84 +7294954,120,CptMrg OSR 750ml 12x01 relay / Lgut,04.05.2010,0,829378/27536,09.05.2010,173503,72,62.49,1,BTL,"383,591.30","4,499.50",32,72 +7294700,10,J Wlkr Red 75cl 12x01,04.05.2010,0,prueba subst mx3,06.05.2010,172486,2,0,"1,200",BTL,0,0,32,2 +7294423,10,BAILEYS ORIGINAL 750ML 12x01,04.05.2010,180,TUCAN0510,12.05.2010,6023207,180,124.32,1,BTL,"72,378.78","22,377.60",32,180 +7294423,20,Sheridans 750ml 06x01,04.05.2010,12,TUCAN0510,12.05.2010,6023207,12,198.22,1,BTL,"72,378.78","2,378.64",32,12 +7294423,30,ZACAPA CENTENARIO 15 750ML 06x01,04.05.2010,30,TUCAN0510,12.05.2010,6023207,30,212.51,1,BTL,"72,378.78","6,375.30",32,30 +7294423,40,ZACAPA CENTENARIO 23 750ML 06x01,04.05.2010,60,TUCAN0510,12.05.2010,6023207,60,301.99,1,BTL,"72,378.78","18,119.40",32,60 +7294423,50,Ciroc 750ml 06x01,04.05.2010,12,TUCAN0510,12.05.2010,6023207,12,220.97,1,BTL,"72,378.78","2,651.64",32,12 +7294423,60,J Wlkr Green 700ml 06x01,04.05.2010,60,TUCAN0510,12.05.2010,6023207,60,341.27,1,BTL,"72,378.78","20,476.20",32,60 +7293905,10,JWlkr Red 750ml MIDAS C/IBC 12x01,04.05.2010,600,825452/27536,09.05.2010,185343,600,92.23,1,BTL,0,"55,339.20",32,600 +7293905,20,GUINNESS BTL DR 330ML BTL 01x24,04.05.2010,0,825452/27536,09.05.2010,185343,96,10.22,1,BTL,0,981.5,31,96 +7293905,30,Guinness Lata DR 440ml 24x01,04.05.2010,0,825452/27536,09.05.2010,185343,72,13.68,1,BTL,0,984.96,31,72 +7293903,10,ZACAPA CENTENARIO 15 750ML 06x01,04.05.2010,0,3135/PR0000100,03.05.2010,6023873,60,212.51,1,BTL,"22,988.70","12,750.60",32,60 +7293903,10,ZACAPA CENTENARIO 15 750ML 06x01,04.05.2010,60,3135/PR0000100,07.05.2010,6023873,60,212.51,1,BTL,"22,988.70","12,750.60",32,0 +7293903,20,J Wlkr Green 700ml 06x01,04.05.2010,0,3135/PR0000100,03.05.2010,6023873,30,341.27,1,BTL,"22,988.70","10,238.10",32,30 +7293903,20,J Wlkr Green 700ml 06x01,04.05.2010,30,3135/PR0000100,07.05.2010,6023873,30,341.27,1,BTL,"22,988.70","10,238.10",32,0 +7293901,10,BAILEYS ORIGINAL 750ML 12x01,04.05.2010,360,3116/PR0000100,07.05.2010,6023296,360,124.32,1,BTL,"297,723.84","44,755.20",32,0 +7293901,10,BAILEYS ORIGINAL 750ML 12x01,04.05.2010,0,3116/PR0000100,03.05.2010,6023296,360,124.32,1,BTL,"297,723.84","44,755.20",32,360 +7293901,20,J&B Rare 750ml no IBC 12x01,04.05.2010,672,3116/PR0000100,07.05.2010,6023296,672,104.62,1,BTL,"297,723.84","70,304.64",32,0 +7293901,20,J&B Rare 750ml no IBC 12x01,04.05.2010,0,3116/PR0000100,03.05.2010,6023296,672,104.62,1,BTL,"297,723.84","70,304.64",32,672 +7293901,30,Buchanan Deluxe 750ml 12x01,04.05.2010,720,3116/PR0000100,07.05.2010,6023296,720,253.7,1,BTL,"297,723.84","182,664.00",32,0 +7293901,30,Buchanan Deluxe 750ml 12x01,04.05.2010,0,3116/PR0000100,03.05.2010,6023296,720,253.7,1,BTL,"297,723.84","182,664.00",32,720 +7293899,10,Vat 69 75cl 12x01,04.05.2010,0,1079/PR0000100,03.05.2010,6023166,36,0,"1,200",BTL,0,0,32,36 +7293895,10,CptMrg OSR 750ml 12x01 relay / Lgut,04.05.2010,100,64620743/12307,11.05.2010,162532,100,46.28,1,BTL,"55,537.92","55,537.92",32,100 +7293894,10,J Wlkr Red 750ml Sensor 12x01,04.05.2010,12,6500240709/287053964,10.05.2010,6024151,12,92.23,1,BTL,328.32,"1,106.78",32,12 +7293894,20,Guinness Lata DR 440ml 24x01,04.05.2010,0,6500240709/287053964,10.05.2010,6024151,24,13.68,1,BTL,328.32,328.32,31,24 +7293892,10,Buchanan Deluxe 750ml 12x01,04.05.2010,0,64636760/8623,12.05.2010,6023390,480,182.66,1,BTL,"87,678.72","87,678.72",32,480 +7293890,10,Buchanan Deluxe 750ml 12x01,04.05.2010,0,15676446/231225,08.05.2010,6023921,288,182.66,1,BTL,"127,118.63","52,607.23",32,288 +7293890,20,Buchanan Sr 18y 750ml 06x01,04.05.2010,0,15676446/231225,08.05.2010,6023921,6,376.47,1,BTL,"127,118.63","2,258.80",32,6 +7293890,30,CptMrg OSR 750ml 12x01 relay / Lgut,04.05.2010,0,15676446/231225,08.05.2010,6023921,24,46.28,1,BTL,"127,118.63","1,110.76",32,24 +7293890,40,Guinness Lata DR 440ml 24x01,04.05.2010,0,15676446/231225,08.05.2010,6023921,72,13.68,1,BTL,"127,118.63",984.96,31,72 +7293890,50,Tanqueray Ten Gin 750ml 12x01,04.05.2010,0,15676446/231225,08.05.2010,6023921,12,147.46,1,BTL,"127,118.63","1,769.47",32,12 +7293890,60,JWlkr Red 750ml MIDAS C/IBC 12x01,04.05.2010,0,15676446/231225,08.05.2010,6023921,36,92.23,1,BTL,"127,118.63","3,320.35",32,36 +7293890,70,JW Black Label 750ml 12x01,04.05.2010,0,15676446/231225,08.05.2010,6023921,180,173.04,1,BTL,"127,118.63","31,146.77",32,180 +7293890,80,Old Parr 750ml 12x01,04.05.2010,0,15676446/231225,08.05.2010,6023921,24,153.07,1,BTL,"127,118.63","3,673.73",32,24 +7293890,90,Vat 69 750ml 12x01,04.05.2010,0,15676446/231225,08.05.2010,6023921,216,43.95,1,BTL,"127,118.63","9,492.94",32,216 +7293890,100,J&B Rare 750ml 12x01,04.05.2010,0,15676446/231225,08.05.2010,6023921,72,75.33,1,BTL,"127,118.63","5,423.50",32,72 +7293890,110,BAILEYS ORIGINAL 750ML 12x01,04.05.2010,0,15676446/231225,08.05.2010,6023921,156,77.43,1,BTL,"127,118.63","12,078.53",32,156 +7293890,120,Baileys Flavours Mint Choco 750ml 12x01,04.05.2010,0,15676446/231225,08.05.2010,6023921,36,77.43,1,BTL,"127,118.63","2,787.35",32,36 +7293890,130,Baileys Flavours Caramel 750ml 12x01,04.05.2010,0,15676446/231225,08.05.2010,6023921,12,77.43,1,BTL,"127,118.63",929.11,32,12 +7293890,140,ZACAPA CENTENARIO 23 750ML 06x01,04.05.2010,0,15676446/231225,08.05.2010,6023921,6,217.43,1,BTL,"127,118.63","1,304.60",32,6 +7293881,10,Buchanan Deluxe 750ml 12x01,04.05.2010,0,15676445/231225,08.05.2010,6024222,372,182.66,1,BTL,"139,328.04","67,951.01",32,372 +7293881,20,Buchanan Sr 18y 750ml 06x01,04.05.2010,0,15676445/231225,08.05.2010,6024222,36,376.47,1,BTL,"139,328.04","13,552.79",32,36 +7293881,30,JWlkr Red 750ml MIDAS C/IBC 12x01,04.05.2010,0,15676445/231225,08.05.2010,6024222,24,92.23,1,BTL,"139,328.04","2,213.57",32,24 +7293881,40,Guinness Lata DR 440ml 24x01,04.05.2010,0,15676445/231225,08.05.2010,6024222,48,13.68,1,BTL,"139,328.04",656.64,31,48 +7293881,50,JWlkr Red 750ml MIDAS C/IBC 12x01,04.05.2010,0,15676445/231225,08.05.2010,6024222,108,92.23,1,BTL,"139,328.04","9,961.06",32,108 +7293881,60,JW Black Label 750ml 12x01,04.05.2010,0,15676445/231225,08.05.2010,6024222,24,173.04,1,BTL,"139,328.04","4,152.90",32,24 +7293881,70,J Wlkr Green 700ml 06x01,04.05.2010,0,15676445/231225,08.05.2010,6024222,18,245.71,1,BTL,"139,328.04","4,422.86",32,18 +7293881,80,Old Parr 750ml 12x01,04.05.2010,0,15676445/231225,08.05.2010,6024222,12,153.07,1,BTL,"139,328.04","1,836.86",32,12 +7293881,90,Vat 69 750ml 12x01,04.05.2010,0,15676445/231225,08.05.2010,6024222,96,43.95,1,BTL,"139,328.04","4,219.08",32,96 +7293881,100,J&B Rare 750ml 12x01,04.05.2010,0,15676445/231225,08.05.2010,6024222,108,75.33,1,BTL,"139,328.04","8,135.25",32,108 +7293881,110,BAILEYS ORIGINAL 750ML 12x01,04.05.2010,0,15676445/231225,08.05.2010,6024222,204,77.43,1,BTL,"139,328.04","15,795.00",32,204 +7293881,120,Sheridans 750ml 06x01,04.05.2010,0,15676445/231225,08.05.2010,6024222,6,142.72,1,BTL,"139,328.04",856.31,32,6 +7293881,130,Baileys Flavours Mint Choco 750ml 12x01,04.05.2010,0,15676445/231225,08.05.2010,6024222,24,77.43,1,BTL,"139,328.04","1,858.24",32,24 +7293881,140,Baileys Flavours Caramel 750ml 12x01,04.05.2010,0,15676445/231225,08.05.2010,6024222,48,77.43,1,BTL,"139,328.04","3,716.47",32,48 +7293876,10,JW Black Label 750ml 12x01,04.05.2010,0,15675564/231225,08.05.2010,6023921,12,173.04,1,BTL,"3,005.56","2,076.45",32,12 +7293876,20,BAILEYS ORIGINAL 750ML 12x01,04.05.2010,0,15675564/231225,08.05.2010,6023921,12,77.43,1,BTL,"3,005.56",929.11,32,12 +7293874,10,Buchanan Deluxe 750ml 12x01,04.05.2010,0,08167168/231225,07.06.2010,172486,24,182.66,1,BTL,"12,933.17","4,383.94",32,24 +7293874,20,JWlkr Red 750ml MIDAS S/IBC 12x01,04.05.2010,0,08167168/231225,07.06.2010,172486,12,92.23,1,BTL,"12,933.17","1,106.78",32,12 +7293874,30,JW Black Label 750ml 12x01,04.05.2010,0,08167168/231225,07.06.2010,172486,24,173.04,1,BTL,"12,933.17","4,152.90",32,24 +7293874,40,Vat 69 750ml 12x01,04.05.2010,0,08167168/231225,07.06.2010,172486,12,43.95,1,BTL,"12,933.17",527.39,32,12 +7293874,50,J&B Rare 750ml 12x01,04.05.2010,0,08167168/231225,07.06.2010,172486,12,75.33,1,BTL,"12,933.17",903.92,32,12 +7293874,60,BAILEYS ORIGINAL 750ML 12x01,04.05.2010,0,08167168/231225,07.06.2010,172486,24,77.43,1,BTL,"12,933.17","1,858.24",32,24 +7293872,10,Buchanan Deluxe 750ml 12x01,04.05.2010,0,08166076/231225,01.06.2010,172486,24,182.66,1,BTL,"12,933.17","4,383.94",32,24 +7293872,20,JWlkr Red 750ml MIDAS C/IBC 12x01,04.05.2010,0,08166076/231225,01.06.2010,172486,12,92.23,1,BTL,"12,933.17","1,106.78",32,12 +7293872,30,JW Black Label 750ml 12x01,04.05.2010,0,08166076/231225,01.06.2010,172486,24,173.04,1,BTL,"12,933.17","4,152.90",32,24 +7293872,40,Vat 69 750ml 12x01,04.05.2010,0,08166076/231225,01.06.2010,172486,12,43.95,1,BTL,"12,933.17",527.39,32,12 +7293872,50,J&B Rare 750ml 12x01,04.05.2010,0,08166076/231225,01.06.2010,172486,12,75.33,1,BTL,"12,933.17",903.92,32,12 +7293872,60,BAILEYS ORIGINAL 750ML 12x01,04.05.2010,0,08166076/231225,01.06.2010,172486,24,77.43,1,BTL,"12,933.17","1,858.24",32,24 +7293869,10,Buchanan Sr 18y 750ml 06x01,04.05.2010,0,07293381/231225,11.05.2010,187815,42,376.47,1,BTL,"56,092.44","15,811.59",32,42 +7293869,20,Buchanan Deluxe 4.5L 12Y 03x01,04.05.2010,0,07293381/231225,11.05.2010,187815,3,"1,010.39",1,BTL,"56,092.44","3,031.17",32,3 +7293869,30,J Wlkr Red 4.5L 03x01,04.05.2010,0,07293381/231225,11.05.2010,187815,24,507.1,1,BTL,"56,092.44","12,170.30",32,24 +7293869,40,JW Black Label 4500ml 03x01,04.05.2010,0,07293381/231225,11.05.2010,187815,6,955.39,1,BTL,"56,092.44","5,732.34",32,6 +7293869,50,JW Black Label 750ml 12x01,04.05.2010,0,07293381/231225,11.05.2010,187815,60,173.04,1,BTL,"56,092.44","10,382.26",32,60 +7293869,60,J&B Rare 750ml no IBC 12x01,04.05.2010,0,07293381/231225,11.05.2010,187815,24,75.33,1,BTL,"56,092.44","1,807.83",32,24 +7293869,70,Baileys Original 1L 12x01,04.05.2010,0,07293381/231225,11.05.2010,187815,48,119.28,1,BTL,"56,092.44","5,725.56",32,48 +7293869,80,Baileys Flavours Caramel 1L 12x01,04.05.2010,0,07293381/231225,11.05.2010,187815,12,119.28,1,BTL,"56,092.44","1,431.39",32,12 +7293863,10,Buchanan Sr 18y 750ml 06x01,04.05.2010,0,07293380/231225,11.05.2010,6024221,6,376.47,1,BTL,"27,339.53","2,258.80",32,6 +7293863,20,J Wlkr Red 4.5L 03x01,04.05.2010,0,07293380/231225,11.05.2010,6024221,3,507.1,1,BTL,"27,339.53","1,521.29",32,3 +7293863,30,JWlkr Red 750ml MIDAS S/IBC 12x01,04.05.2010,0,07293380/231225,11.05.2010,6024221,72,92.23,1,BTL,"27,339.53","6,640.70",32,72 +7293863,40,JW Black Label 4500ml 03x01,04.05.2010,0,07293380/231225,11.05.2010,6024221,3,955.39,1,BTL,"27,339.53","2,866.17",32,3 +7293863,50,J&B Rare 750ml no IBC 12x01,04.05.2010,0,07293380/231225,11.05.2010,6024221,12,75.33,1,BTL,"27,339.53",903.92,32,12 +7293863,60,Baileys Original 1L 12x01,04.05.2010,0,07293380/231225,11.05.2010,6024221,96,119.28,1,BTL,"27,339.53","11,451.11",32,96 +7293863,70,Zacapa Centenario 1L 23 06x01,04.05.2010,0,07293380/231225,11.05.2010,6024221,6,282.92,1,BTL,"27,339.53","1,697.54",32,6 +7293858,10,Buchanan Deluxe 750ml 12x01,04.05.2010,0,15675563/231225,08.05.2010,6024222,96,182.66,1,BTL,"49,138.54","17,535.74",32,96 +7293858,20,JWlkr Red 750ml MIDAS C/IBC 12x01,04.05.2010,0,15675563/231225,08.05.2010,6024222,180,92.23,1,BTL,"49,138.54","16,601.76",32,180 +7293858,30,JW Black Label 750ml 12x01,04.05.2010,0,15675563/231225,08.05.2010,6024222,24,173.04,1,BTL,"49,138.54","4,152.90",32,24 +7293858,40,Vat 69 750ml 12x01,04.05.2010,0,15675563/231225,08.05.2010,6024222,36,43.95,1,BTL,"49,138.54","1,582.16",32,36 +7293858,50,J&B Rare 750ml 12x01,04.05.2010,0,15675563/231225,08.05.2010,6024222,12,75.33,1,BTL,"49,138.54",903.92,32,12 +7293858,60,BAILEYS ORIGINAL 750ML 12x01,04.05.2010,0,15675563/231225,08.05.2010,6024222,108,77.43,1,BTL,"49,138.54","8,362.06",32,108 +7293853,10,JW Black Label 750ml 12x01,04.05.2010,84,1638649/4378,17.05.2010,6025767,84,173.04,1,BTL,"100,271.04","14,535.16",32,84 +7293853,20,Buchanan Deluxe 750ml 12x01,04.05.2010,192,1638649/4378,17.05.2010,6025767,192,182.66,1,BTL,"100,271.04","35,071.49",32,192 +7293853,30,Vat 69 750ml 12x01,04.05.2010,36,1638649/4378,17.05.2010,6025767,36,43.95,1,BTL,"100,271.04","1,582.16",32,36 +7293853,40,J&B Rare 750ml 12x01,04.05.2010,144,1638649/4378,17.05.2010,6025767,144,75.33,1,BTL,"100,271.04","10,847.00",32,144 +7293853,50,Buchanan Sr 18y 750ml 06x01,04.05.2010,6,1638649/4378,17.05.2010,6025767,6,376.47,1,BTL,"100,271.04","2,258.80",32,6 +7293853,60,BAILEYS ORIGINAL 750ML 12x01,04.05.2010,36,1638649/4378,17.05.2010,6025767,36,77.43,1,BTL,"100,271.04","2,787.35",32,36 +7293853,70,Sheridans 750ml 06x01,04.05.2010,6,1638649/4378,17.05.2010,6025767,6,142.72,1,BTL,"100,271.04",856.31,32,6 +7293853,80,J Wlkr Blue 750ml 06x01,04.05.2010,6,1638649/4378,17.05.2010,6025767,6,"1,039.82",1,BTL,"100,271.04","6,238.90",32,6 +7293853,90,Baileys Flavours Caramel 750ml 12x01,04.05.2010,24,1638649/4378,17.05.2010,6025767,24,77.43,1,BTL,"100,271.04","1,858.24",32,24 +7293853,100,ZACAPA CENTENARIO 15 750ML 06x01,04.05.2010,6,1638649/4378,17.05.2010,6025767,6,153.01,1,BTL,"100,271.04",918.04,32,6 +7293853,110,ZACAPA CENTENARIO 23 750ML 06x01,04.05.2010,6,1638649/4378,17.05.2010,6025767,6,217.43,1,BTL,"100,271.04","1,304.60",32,6 +7293853,120,Guinness Lata DR 440ml 24x01,04.05.2010,216,1638649/4378,17.05.2010,6025767,216,13.68,1,BTL,"100,271.04","2,954.88",31,216 +7293853,130,Buchanan Master 750ml 12x01,04.05.2010,72,1638649/4378,17.05.2010,6025767,72,210.7,1,BTL,"100,271.04","15,170.46",32,72 +7293853,140,CptMrg OSR 750ml 12x01 relay / Lgut,04.05.2010,84,1638649/4378,17.05.2010,6025767,84,46.28,1,BTL,"100,271.04","3,887.65",32,84 +7293844,10,J&B Rare 750ml no IBC 12x01,04.05.2010,0,16723814/98701,14.05.2010,6023523,144,101.71,1,BTL,"551,160.43","14,646.47",32,144 +7293844,20,Buchanan Sr 18y 750ml 06x01,04.05.2010,0,16723814/98701,14.05.2010,6023523,72,376.47,1,BTL,"551,160.43","27,105.58",32,72 +7293844,30,Buchanan Deluxe 750ml 12x01,04.05.2010,0,16723814/98701,14.05.2010,6023523,240,182.66,1,BTL,"551,160.43","43,839.36",32,240 +7293844,40,J Wlkr Red 750 ml Lata AIG 12x01,04.05.2010,0,16723814/98701,14.05.2010,6023523,912,124.54,1,BTL,"551,160.43","113,579.40",32,912 +7293844,50,JW Black Label 750ml 12x01,04.05.2010,0,16723814/98701,14.05.2010,6023523,300,173.04,1,BTL,"551,160.43","51,911.28",32,300 +7293844,60,J Walker Gold 750ml 12x01,04.05.2010,0,16723814/98701,14.05.2010,6023523,12,409.53,1,BTL,"551,160.43","4,914.35",32,12 +7293844,70,J Wlkr Blue 750ml 06x01,04.05.2010,0,16723814/98701,14.05.2010,6023523,12,"1,039.82",1,BTL,"551,160.43","12,477.80",32,12 +7293844,80,Old Parr 750ml 12x01,04.05.2010,0,16723814/98701,14.05.2010,6023523,48,153.07,1,BTL,"551,160.43","7,347.46",32,48 +7293844,90,Ciroc 750ml 06x01,04.05.2010,0,16723814/98701,14.05.2010,6023523,6,159.1,1,BTL,"551,160.43",954.59,32,6 +7293844,100,J Wlkr Green 700ml 06x01,04.05.2010,0,16723814/98701,14.05.2010,6023523,114,245.71,1,BTL,"551,160.43","28,011.44",32,114 +7293844,110,JWlkr Red 1L MIDAS S/IBC 12x01,04.05.2010,0,16723814/98701,14.05.2010,6023523,684,162.4,1,BTL,"551,160.43","111,079.06",32,684 +7293844,120,Buchanan Deluxe 4.5L 12Y 03x01,04.05.2010,0,16723814/98701,14.05.2010,6023523,15,"1,010.39",1,BTL,"551,160.43","15,155.86",32,15 +7293844,130,Buchanan Red Seal 750ml 06x01,04.05.2010,0,16723814/98701,14.05.2010,6023523,12,857.48,1,BTL,"551,160.43","10,289.81",32,12 +7293844,140,Buchanan Deluxe 1L 12Y 12x01,04.05.2010,0,16723814/98701,14.05.2010,6023523,408,237.85,1,BTL,"551,160.43","97,043.62",32,408 +7293844,150,ZACAPA CENTENARIO 15 750ML 06x01,04.05.2010,0,16723814/98701,14.05.2010,6023523,24,153.01,1,BTL,"551,160.43","3,672.17",32,24 +7293844,160,ZACAPA CENTENARIO 23 750ML 06x01,04.05.2010,0,16723814/98701,14.05.2010,6023523,42,217.43,1,BTL,"551,160.43","9,132.18",32,42 +7293842,10,Guinness Lata DR 440ml 24x01,04.05.2010,144,16726317/98701,14.05.2010,6023523,144,13.68,1,BTL,"3,687.55","1,969.92",31,144 +7293842,20,GUINNESS BTL DR 330ML BTL 01x24,04.05.2010,168,16726317/98701,14.05.2010,6023523,168,10.22,1,BTL,"3,687.55","1,717.63",31,168 +7293841,10,BAILEYS ORIGINAL 750ML 12x01,04.05.2010,0,16726905/98701,14.05.2010,6023523,108,77.43,1,BTL,"22,845.09","8,362.06",32,108 +7293841,20,Sheridans 750ml 06x01,04.05.2010,0,16726905/98701,14.05.2010,6023523,48,142.72,1,BTL,"22,845.09","6,850.48",32,48 +7293841,30,Baileys Flavours Caramel 750ml 12x01,04.05.2010,0,16726905/98701,14.05.2010,6023523,48,77.43,1,BTL,"22,845.09","3,716.47",32,48 +7293841,40,Baileys Flavours Mint Choco 750ml 12x01,04.05.2010,0,16726905/98701,14.05.2010,6023523,36,108.78,1,BTL,"22,845.09","3,916.08",32,36 +7293837,10,J Wlkr Red 750 ml Lata AIG 12x01,04.05.2010,0,16729584/98701,14.05.2010,6023523,60,124.54,1,BTL,"9,548.78","7,472.33",32,60 +7293837,20,JW Black Label 750ml 12x01,04.05.2010,0,16729584/98701,14.05.2010,6023523,12,173.04,1,BTL,"9,548.78","2,076.45",32,12 +7293836,10,J Wlkr Red 750 ml Lata AIG 12x01,04.05.2010,0,1170024896,08.05.2010,6023907,600,128.1,1,BTL,"76,860.00","76,860.00",32,600 +7293832,10,BAILEYS ORIGINAL 750ML 12x01,04.05.2010,0,FROZA_BAILEYS,11.05.2010,6027282,60,124.32,1,BTL,"7,459.20","7,459.20",32,60 diff --git a/Chapter2/Regex.py b/Chapter2/Regex.py new file mode 100644 index 0000000..f9df3e2 --- /dev/null +++ b/Chapter2/Regex.py @@ -0,0 +1,25 @@ +import re + +#Email Validation +myString = 'From: readers@packt.com (readers email)' +result = re.search('([\w.-]+)@([\w.-]+)', myString) +if result: + print (result.group(0)) ## 'alice-b@google.com' (the whole match) + print (result.group(1)) ## 'alice-b' (the username, group 1) + print (result.group(2)) ## 'google.com' (the host, group 2) + +# IP Address Validation +isIP = re.compile('\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}') +myString = "Your IP is: 192.168.1.254 " +result = re.findall(isIP,myString) +print(result) + + +#Date Format +myString = "01/04/2001" +isDate = re.match('[0-1][0-9]\/[0-3][0-9]\/[1-2][0-9]{3}', myString) + +if isDate: + print("valid") +else: + print("invalid") diff --git a/Chapter2/WebScraping.py b/Chapter2/WebScraping.py new file mode 100644 index 0000000..4ae8167 --- /dev/null +++ b/Chapter2/WebScraping.py @@ -0,0 +1,19 @@ +from bs4 import BeautifulSoup +import urllib.request +from time import sleep +from datetime import datetime + +def getGoldPrice(): + url = "http://gold.org" + req = urllib.request.urlopen(url) + page = req.read() + scraping = BeautifulSoup(page) + price = scraping.findAll("td",attrs={"id":"spotpriceCellAsk"})[0].text + return price + + +with open("goldPrice.out","w") as f: + for x in range(0,10): + sNow = datetime.now().strftime("%I:%M:%S%p") + f.write("{0}, {1} \n ".format(sNow, getGoldPrice())) + sleep(1) diff --git a/Chapter2/csvReader.py b/Chapter2/csvReader.py new file mode 100644 index 0000000..8b5989b --- /dev/null +++ b/Chapter2/csvReader.py @@ -0,0 +1,7 @@ +import csv + +with open("pokemon.csv") as f: + data = csv.reader(f) + for line in data: + print(" id: {0} , typeTwo: {1}, name: {2}, type: {3}" + .format(line[0],line[1],line[2],line[3])) diff --git a/Chapter2/csvReaderNumpy.py b/Chapter2/csvReaderNumpy.py new file mode 100644 index 0000000..f8aaa70 --- /dev/null +++ b/Chapter2/csvReaderNumpy.py @@ -0,0 +1,8 @@ +import numpy + +data = numpy.genfromtxt("pokemon.csv" + ,skip_header=1 + ,dtype=None + ,delimiter=',') +print(data) + diff --git a/Chapter2/jsonReader.py b/Chapter2/jsonReader.py new file mode 100644 index 0000000..5e3f32b --- /dev/null +++ b/Chapter2/jsonReader.py @@ -0,0 +1,6 @@ +import json +from pprint import pprint + +with open("pokemon.json") as f: + data = json.loads(f.read()) + pprint(data) diff --git a/Chapter2/pokemon.csv b/Chapter2/pokemon.csv new file mode 100644 index 0000000..f9eb9eb --- /dev/null +++ b/Chapter2/pokemon.csv @@ -0,0 +1,298 @@ +id,typeTwo,name,type + 001, Poison, Bulbasaur, Grass + 002, Poison, Ivysaur, Grass + 003, Poison, Venusaur, Grass + 006, Flying, Charizard, Fire + 012, Flying, Butterfree, Bug + 013, Poison, Weedle, Bug + 014, Poison, Kakuna, Bug + 015, Poison, Beedrill, Bug + 016, Flying, Pidgey, Normal + 017, Flying, Pidgeotto, Normal + 018, Flying, Pidgeot, Normal + 021, Flying, Spearow, Normal + 022, Flying, Fearow, Normal + 031, Ground, Nidoqueen, Poison + 034, Ground, Nidoking, Poison + 041, Flying, Zubat, Poison + 042, Flying, Golbat, Poison + 043, Poison, Oddish, Grass + 044, Poison, Gloom, Grass + 045, Poison, Vileplume, Grass + 046, Grass, Paras, Bug + 047, Grass, Parasect, Bug + 048, Poison, Venonat, Bug + 049, Poison, Venomoth, Bug + 062, Fighting, Poliwrath, Water + 069, Poison, Bellsprout, Grass + 070, Poison, Weepinbell, Grass + 071, Poison, Victreebel, Grass + 072, Poison, Tentacool, Water + 073, Poison, Tentacruel, Water + 074, Ground, Geodude, Rock + 075, Ground, Graveler, Rock + 076, Ground, Golem, Rock + 079, Psychic, Slowpoke, Water + 080, Psychic, Slowbro, Water + 081, Steel, Magnemite, Electric + 082, Steel, Magneton, Electric + 083, Flying, Farfetch'd, Normal + 084, Flying, Doduo, Normal + 085, Flying, Dodrio, Normal + 087, Ice, Dewgong, Water + 091, Ice, Cloyster, Water + 092, Poison, Gastly, Ghost + 093, Poison, Haunter, Ghost + 094, Poison, Gengar, Ghost + 095, Ground, Onix, Rock + 102, Psychic, Exeggcute, Grass + 103, Psychic, Exeggutor, Grass + 111, Rock, Rhyhorn, Ground + 112, Rock, Rhydon, Ground + 121, Psychic, Starmie, Water + 123, Flying, Scyther, Bug + 124, Psychic, Jynx, Ice + 130, Flying, Gyarados, Water + 131, Ice, Lapras, Water + 138, Water, Omanyte, Rock + 139, Water, Omastar, Rock + 140, Water, Kabuto, Rock + 141, Water, Kabutops, Rock + 142, Flying, Aerodactyl, Rock + 144, Flying, Articuno, Ice + 145, Flying, Zapdos, Electric + 146, Flying, Moltres, Fire + 149, Flying, Dragonite, Dragon + 163, Flying, Hoothoot, Normal + 164, Flying, Noctowl, Normal + 165, Flying, Ledyba, Bug + 166, Flying, Ledian, Bug + 167, Poison, Spinarak, Bug + 168, Poison, Ariados, Bug + 169, Flying, Crobat, Poison + 170, Electric, Chinchou, Water + 171, Electric, Lanturn, Water + 176, Flying, Togetic, Normal + 177, Flying, Natu, Psychic + 178, Flying, Xatu, Psychic + 187, Flying, Hoppip, Grass + 188, Flying, Skiploom, Grass + 189, Flying, Jumpluff, Grass + 193, Flying, Yanma, Bug + 194, Ground, Wooper, Water + 195, Ground, Quagsire, Water + 198, Flying, Murkrow, Dark + 199, Psychic, Slowking, Water + 203, Psychic, Girafarig, Normal + 205, Steel, Forretress, Bug + 207, Flying, Gligar, Ground + 208, Ground, Steelix, Steel + 211, Poison, Qwilfish, Water + 212, Steel, Scizor, Bug + 213, Rock, Shuckle, Bug + 214, Fighting, Heracross, Bug + 215, Ice, Sneasel, Dark + 219, Rock, Magcargo, Fire + 220, Ground, Swinub, Ice + 221, Ground, Piloswine, Ice + 222, Rock, Corsola, Water + 225, Flying, Delibird, Ice + 226, Flying, Mantine, Water + 227, Flying, Skarmory, Steel + 228, Fire, Houndour, Dark + 229, Fire, Houndoom, Dark + 230, Dragon, Kingdra, Water + 238, Psychic, Smoochum, Ice + 246, Ground, Larvitar, Rock + 247, Ground, Pupitar, Rock + 248, Dark, Tyranitar, Rock + 249, Flying, Lugia, Psychic + 250, Flying, Ho-Oh, Fire + 251, Grass, Celebi, Psychic + 256, Fighting, Combusken, Fire + 257, Fighting, Blaziken, Fire + 259, Ground, Marshtomp, Water + 260, Ground, Swampert, Water + 267, Flying, Beautifly, Bug + 269, Poison, Dustox, Bug + 270, Grass, Lotad, Water + 271, Grass, Lombre, Water + 272, Grass, Ludicolo, Water + 274, Dark, Nuzleaf, Grass + 275, Dark, Shiftry, Grass + 276, Flying, Taillow, Normal + 277, Flying, Swellow, Normal + 278, Flying, Wingull, Water + 279, Flying, Pelipper, Water + 283, Water, Surskit, Bug + 284, Flying, Masquerain, Bug + 286, Fighting, Breloom, Grass + 290, Ground, Nincada, Bug + 291, Flying, Ninjask, Bug + 292, Ghost, Shedinja, Bug + 302, Ghost, Sableye, Dark + 304, Rock, Aron, Steel + 305, Rock, Lairon, Steel + 306, Rock, Aggron, Steel + 307, Psychic, Meditite, Fighting + 308, Psychic, Medicham, Fighting + 315, Poison, Roselia, Grass + 318, Dark, Carvanha, Water + 319, Dark, Sharpedo, Water + 322, Ground, Numel, Fire + 323, Ground, Camerupt, Fire + 329, Dragon, Vibrava, Ground + 330, Dragon, Flygon, Ground + 332, Dark, Cacturne, Grass + 333, Flying, Swablu, Normal + 334, Flying, Altaria, Dragon + 337, Psychic, Lunatone, Rock + 338, Psychic, Solrock, Rock + 339, Ground, Barboach, Water + 340, Ground, Whiscash, Water + 342, Dark, Crawdaunt, Water + 343, Psychic, Baltoy, Ground + 344, Psychic, Claydol, Ground + 345, Grass, Lileep, Rock + 346, Grass, Cradily, Rock + 347, Bug, Anorith, Rock + 348, Bug, Armaldo, Rock + 357, Flying, Tropius, Grass + 363, Water, Spheal, Ice + 364, Water, Sealeo, Ice + 365, Water, Walrein, Ice + 369, Rock, Relicanth, Water + 373, Flying, Salamence, Dragon + 374, Psychic, Beldum, Steel + 375, Psychic, Metang, Steel + 376, Psychic, Metagross, Steel + 380, Psychic, Latias, Dragon + 381, Psychic, Latios, Dragon + 384, Flying, Rayquaza, Dragon + 385, Psychic, Jirachi, Steel + 389, Ground, Torterra, Grass + 391, Fighting, Monferno, Fire + 392, Fighting, Infernape, Fire + 395, Steel, Empoleon, Water + 396, Flying, Starly, Normal + 397, Flying, Staravia, Normal + 398, Flying, Staraptor, Normal + 400, Water, Bibarel, Normal + 406, Poison, Budew, Grass + 407, Poison, Roserade, Grass + 410, Steel, Shieldon, Rock + 411, Steel, Bastiodon, Rock + 413, Steel, Wormadam, Bug + 414, Flying, Mothim, Bug + 415, Flying, Combee, Bug + 416, Flying, Vespiquen, Bug + 423, Ground, Gastrodon, Water + 425, Flying, Drifloon, Ghost + 426, Flying, Drifblim, Ghost + 430, Flying, Honchkrow, Dark + 434, Dark, Stunky, Poison + 435, Dark, Skuntank, Poison + 436, Psychic, Bronzor, Steel + 437, Psychic, Bronzong, Steel + 441, Flying, Chatot, Normal + 442, Dark, Spiritomb, Ghost + 443, Ground, Gible, Dragon + 444, Ground, Gabite, Dragon + 445, Ground, Garchomp, Dragon + 448, Steel, Lucario, Fighting + 451, Bug, Skorupi, Poison + 452, Dark, Drapion, Poison + 453, Fighting, Croagunk, Poison + 454, Fighting, Toxicroak, Poison + 458, Flying, Mantyke, Water + 459, Ice, Snover, Grass + 460, Ice, Abomasnow, Grass + 461, Ice, Weavile, Dark + 462, Steel, Magnezone, Electric + 464, Rock, Rhyperior, Ground + 468, Flying, Togekiss, Normal + 469, Flying, Yanmega, Bug + 472, Flying, Gliscor, Ground + 473, Ground, Mamoswine, Ice + 475, Fighting, Gallade, Psychic + 476, Steel, Probopass, Rock + 478, Ghost, Froslass, Ice + 479, Grass, Rotom, Electric + 483, Dragon, Dialga, Steel + 484, Dragon, Palkia, Water + 485, Steel, Heatran, Fire + 487, Dragon, Giratina, Ghost + 492, Flying, Shaymin, Grass + 494, Fire, Victini, Psychic + 499, Fighting, Pignite, Fire + 500, Fighting, Emboar, Fire + 519, Flying, Pidove, Normal + 520, Flying, Tranquill, Normal + 521, Flying, Unfezant, Normal + 527, Flying, Woobat, Psychic + 528, Flying, Swoobat, Psychic + 530, Steel, Excadrill, Ground + 536, Ground, Palpitoad, Water + 537, Ground, Seismitoad, Water + 540, Grass, Sewaddle, Bug + 541, Grass, Swadloon, Bug + 542, Grass, Leavanny, Bug + 543, Poison, Venipede, Bug + 544, Poison, Whirlipede, Bug + 545, Poison, Scolipede, Bug + 551, Dark, Sandile, Ground + 552, Dark, Krokorok, Ground + 553, Dark, Krookodile, Ground + 555, Psychic, Darmanitan, Fire + 557, Rock, Dwebble, Bug + 558, Rock, Crustle, Bug + 559, Fighting, Scraggy, Dark + 560, Fighting, Scrafty, Dark + 561, Flying, Sigilyph, Psychic + 564, Rock, Tirtouga, Water + 565, Rock, Carracosta, Water + 566, Flying, Archen, Rock + 567, Flying, Archeops, Rock + 580, Flying, Ducklett, Water + 581, Flying, Swanna, Water + 585, Grass, Deerling, Normal + 586, Grass, Sawsbuck, Normal + 587, Flying, Emolga, Electric + 589, Steel, Escavalier, Bug + 590, Poison, Foongus, Grass + 591, Poison, Amoonguss, Grass + 592, Ghost, Frillish, Water + 593, Ghost, Jellicent, Water + 595, Electric, Joltik, Bug + 596, Electric, Galvantula, Bug + 597, Steel, Ferroseed, Grass + 598, Steel, Ferrothorn, Grass + 607, Fire, Litwick, Ghost + 608, Fire, Lampent, Ghost + 609, Fire, Chandelure, Ghost + 618, Electric, Stunfisk, Ground + 622, Ghost, Golett, Ground + 623, Ghost, Golurk, Ground + 624, Steel, Pawniard, Dark + 625, Steel, Bisharp, Dark + 627, Flying, Rufflet, Normal + 628, Flying, Braviary, Normal + 629, Flying, Vullaby, Dark + 630, Flying, Mandibuzz, Dark + 632, Steel, Durant, Bug + 633, Dragon, Deino, Dark + 634, Dragon, Zweilous, Dark + 635, Dragon, Hydreigon, Dark + 636, Fire, Larvesta, Bug + 637, Fire, Volcarona, Bug + 638, Fighting, Cobalion, Steel + 639, Fighting, Terrakion, Rock + 640, Fighting, Virizion, Grass + 642, Flying, Thundurus, Electric + 643, Fire, Reshiram, Dragon + 644, Electric, Zekrom , Dragon + 645, Flying, Landorus, Ground + 646, Ice, Kyurem, Dragon + 647, Fighting, Keldeo, Water + 648, Fighting, Meloetta, Normal + 649, Steel, Genesect, Bug diff --git a/Chapter2/pokemon.json b/Chapter2/pokemon.json new file mode 100644 index 0000000..e302083 --- /dev/null +++ b/Chapter2/pokemon.json @@ -0,0 +1,1784 @@ +[ + { + "id": " 001", + "typeTwo": " Poison", + "name": " Bulbasaur", + "type": " Grass" + }, + { + "id": " 002", + "typeTwo": " Poison", + "name": " Ivysaur", + "type": " Grass" + }, + { + "id": " 003", + "typeTwo": " Poison", + "name": " Venusaur", + "type": " Grass" + }, + { + "id": " 006", + "typeTwo": " Flying", + "name": " Charizard", + "type": " Fire" + }, + { + "id": " 012", + "typeTwo": " Flying", + "name": " Butterfree", + "type": " Bug" + }, + { + "id": " 013", + "typeTwo": " Poison", + "name": " Weedle", + "type": " Bug" + }, + { + "id": " 014", + "typeTwo": " Poison", + "name": " Kakuna", + "type": " Bug" + }, + { + "id": " 015", + "typeTwo": " Poison", + "name": " Beedrill", + "type": " Bug" + }, + { + "id": " 016", + "typeTwo": " Flying", + "name": " Pidgey", + "type": " Normal" + }, + { + "id": " 017", + "typeTwo": " Flying", + "name": " Pidgeotto", + "type": " Normal" + }, + { + "id": " 018", + "typeTwo": " Flying", + "name": " Pidgeot", + "type": " Normal" + }, + { + "id": " 021", + "typeTwo": " Flying", + "name": " Spearow", + "type": " Normal" + }, + { + "id": " 022", + "typeTwo": " Flying", + "name": " Fearow", + "type": " Normal" + }, + { + "id": " 031", + "typeTwo": " Ground", + "name": " Nidoqueen", + "type": " Poison" + }, + { + "id": " 034", + "typeTwo": " Ground", + "name": " Nidoking", + "type": " Poison" + }, + { + "id": " 041", + "typeTwo": " Flying", + "name": " Zubat", + "type": " Poison" + }, + { + "id": " 042", + "typeTwo": " Flying", + "name": " Golbat", + "type": " Poison" + }, + { + "id": " 043", + "typeTwo": " Poison", + "name": " Oddish", + "type": " Grass" + }, + { + "id": " 044", + "typeTwo": " Poison", + "name": " Gloom", + "type": " Grass" + }, + { + "id": " 045", + "typeTwo": " Poison", + "name": " Vileplume", + "type": " Grass" + }, + { + "id": " 046", + "typeTwo": " Grass", + "name": " Paras", + "type": " Bug" + }, + { + "id": " 047", + "typeTwo": " Grass", + "name": " Parasect", + "type": " Bug" + }, + { + "id": " 048", + "typeTwo": " Poison", + "name": " Venonat", + "type": " Bug" + }, + { + "id": " 049", + "typeTwo": " Poison", + "name": " Venomoth", + "type": " Bug" + }, + { + "id": " 062", + "typeTwo": " Fighting", + "name": " Poliwrath", + "type": " Water" + }, + { + "id": " 069", + "typeTwo": " Poison", + "name": " Bellsprout", + "type": " Grass" + }, + { + "id": " 070", + "typeTwo": " Poison", + "name": " Weepinbell", + "type": " Grass" + }, + { + "id": " 071", + "typeTwo": " Poison", + "name": " Victreebel", + "type": " Grass" + }, + { + "id": " 072", + "typeTwo": " Poison", + "name": " Tentacool", + "type": " Water" + }, + { + "id": " 073", + "typeTwo": " Poison", + "name": " Tentacruel", + "type": " Water" + }, + { + "id": " 074", + "typeTwo": " Ground", + "name": " Geodude", + "type": " Rock" + }, + { + "id": " 075", + "typeTwo": " Ground", + "name": " Graveler", + "type": " Rock" + }, + { + "id": " 076", + "typeTwo": " Ground", + "name": " Golem", + "type": " Rock" + }, + { + "id": " 079", + "typeTwo": " Psychic", + "name": " Slowpoke", + "type": " Water" + }, + { + "id": " 080", + "typeTwo": " Psychic", + "name": " Slowbro", + "type": " Water" + }, + { + "id": " 081", + "typeTwo": " Steel", + "name": " Magnemite", + "type": " Electric" + }, + { + "id": " 082", + "typeTwo": " Steel", + "name": " Magneton", + "type": " Electric" + }, + { + "id": " 083", + "typeTwo": " Flying", + "name": " Farfetch'd", + "type": " Normal" + }, + { + "id": " 084", + "typeTwo": " Flying", + "name": " Doduo", + "type": " Normal" + }, + { + "id": " 085", + "typeTwo": " Flying", + "name": " Dodrio", + "type": " Normal" + }, + { + "id": " 087", + "typeTwo": " Ice", + "name": " Dewgong", + "type": " Water" + }, + { + "id": " 091", + "typeTwo": " Ice", + "name": " Cloyster", + "type": " Water" + }, + { + "id": " 092", + "typeTwo": " Poison", + "name": " Gastly", + "type": " Ghost" + }, + { + "id": " 093", + "typeTwo": " Poison", + "name": " Haunter", + "type": " Ghost" + }, + { + "id": " 094", + "typeTwo": " Poison", + "name": " Gengar", + "type": " Ghost" + }, + { + "id": " 095", + "typeTwo": " Ground", + "name": " Onix", + "type": " Rock" + }, + { + "id": " 102", + "typeTwo": " Psychic", + "name": " Exeggcute", + "type": " Grass" + }, + { + "id": " 103", + "typeTwo": " Psychic", + "name": " Exeggutor", + "type": " Grass" + }, + { + "id": " 111", + "typeTwo": " Rock", + "name": " Rhyhorn", + "type": " Ground" + }, + { + "id": " 112", + "typeTwo": " Rock", + "name": " Rhydon", + "type": " Ground" + }, + { + "id": " 121", + "typeTwo": " Psychic", + "name": " Starmie", + "type": " Water" + }, + { + "id": " 123", + "typeTwo": " Flying", + "name": " Scyther", + "type": " Bug" + }, + { + "id": " 124", + "typeTwo": " Psychic", + "name": " Jynx", + "type": " Ice" + }, + { + "id": " 130", + "typeTwo": " Flying", + "name": " Gyarados", + "type": " Water" + }, + { + "id": " 131", + "typeTwo": " Ice", + "name": " Lapras", + "type": " Water" + }, + { + "id": " 138", + "typeTwo": " Water", + "name": " Omanyte", + "type": " Rock" + }, + { + "id": " 139", + "typeTwo": " Water", + "name": " Omastar", + "type": " Rock" + }, + { + "id": " 140", + "typeTwo": " Water", + "name": " Kabuto", + "type": " Rock" + }, + { + "id": " 141", + "typeTwo": " Water", + "name": " Kabutops", + "type": " Rock" + }, + { + "id": " 142", + "typeTwo": " Flying", + "name": " Aerodactyl", + "type": " Rock" + }, + { + "id": " 144", + "typeTwo": " Flying", + "name": " Articuno", + "type": " Ice" + }, + { + "id": " 145", + "typeTwo": " Flying", + "name": " Zapdos", + "type": " Electric" + }, + { + "id": " 146", + "typeTwo": " Flying", + "name": " Moltres", + "type": " Fire" + }, + { + "id": " 149", + "typeTwo": " Flying", + "name": " Dragonite", + "type": " Dragon" + }, + { + "id": " 163", + "typeTwo": " Flying", + "name": " Hoothoot", + "type": " Normal" + }, + { + "id": " 164", + "typeTwo": " Flying", + "name": " Noctowl", + "type": " Normal" + }, + { + "id": " 165", + "typeTwo": " Flying", + "name": " Ledyba", + "type": " Bug" + }, + { + "id": " 166", + "typeTwo": " Flying", + "name": " Ledian", + "type": " Bug" + }, + { + "id": " 167", + "typeTwo": " Poison", + "name": " Spinarak", + "type": " Bug" + }, + { + "id": " 168", + "typeTwo": " Poison", + "name": " Ariados", + "type": " Bug" + }, + { + "id": " 169", + "typeTwo": " Flying", + "name": " Crobat", + "type": " Poison" + }, + { + "id": " 170", + "typeTwo": " Electric", + "name": " Chinchou", + "type": " Water" + }, + { + "id": " 171", + "typeTwo": " Electric", + "name": " Lanturn", + "type": " Water" + }, + { + "id": " 176", + "typeTwo": " Flying", + "name": " Togetic", + "type": " Normal" + }, + { + "id": " 177", + "typeTwo": " Flying", + "name": " Natu", + "type": " Psychic" + }, + { + "id": " 178", + "typeTwo": " Flying", + "name": " Xatu", + "type": " Psychic" + }, + { + "id": " 187", + "typeTwo": " Flying", + "name": " Hoppip", + "type": " Grass" + }, + { + "id": " 188", + "typeTwo": " Flying", + "name": " Skiploom", + "type": " Grass" + }, + { + "id": " 189", + "typeTwo": " Flying", + "name": " Jumpluff", + "type": " Grass" + }, + { + "id": " 193", + "typeTwo": " Flying", + "name": " Yanma", + "type": " Bug" + }, + { + "id": " 194", + "typeTwo": " Ground", + "name": " Wooper", + "type": " Water" + }, + { + "id": " 195", + "typeTwo": " Ground", + "name": " Quagsire", + "type": " Water" + }, + { + "id": " 198", + "typeTwo": " Flying", + "name": " Murkrow", + "type": " Dark" + }, + { + "id": " 199", + "typeTwo": " Psychic", + "name": " Slowking", + "type": " Water" + }, + { + "id": " 203", + "typeTwo": " Psychic", + "name": " Girafarig", + "type": " Normal" + }, + { + "id": " 205", + "typeTwo": " Steel", + "name": " Forretress", + "type": " Bug" + }, + { + "id": " 207", + "typeTwo": " Flying", + "name": " Gligar", + "type": " Ground" + }, + { + "id": " 208", + "typeTwo": " Ground", + "name": " Steelix", + "type": " Steel" + }, + { + "id": " 211", + "typeTwo": " Poison", + "name": " Qwilfish", + "type": " Water" + }, + { + "id": " 212", + "typeTwo": " Steel", + "name": " Scizor", + "type": " Bug" + }, + { + "id": " 213", + "typeTwo": " Rock", + "name": " Shuckle", + "type": " Bug" + }, + { + "id": " 214", + "typeTwo": " Fighting", + "name": " Heracross", + "type": " Bug" + }, + { + "id": " 215", + "typeTwo": " Ice", + "name": " Sneasel", + "type": " Dark" + }, + { + "id": " 219", + "typeTwo": " Rock", + "name": " Magcargo", + "type": " Fire" + }, + { + "id": " 220", + "typeTwo": " Ground", + "name": " Swinub", + "type": " Ice" + }, + { + "id": " 221", + "typeTwo": " Ground", + "name": " Piloswine", + "type": " Ice" + }, + { + "id": " 222", + "typeTwo": " Rock", + "name": " Corsola", + "type": " Water" + }, + { + "id": " 225", + "typeTwo": " Flying", + "name": " Delibird", + "type": " Ice" + }, + { + "id": " 226", + "typeTwo": " Flying", + "name": " Mantine", + "type": " Water" + }, + { + "id": " 227", + "typeTwo": " Flying", + "name": " Skarmory", + "type": " Steel" + }, + { + "id": " 228", + "typeTwo": " Fire", + "name": " Houndour", + "type": " Dark" + }, + { + "id": " 229", + "typeTwo": " Fire", + "name": " Houndoom", + "type": " Dark" + }, + { + "id": " 230", + "typeTwo": " Dragon", + "name": " Kingdra", + "type": " Water" + }, + { + "id": " 238", + "typeTwo": " Psychic", + "name": " Smoochum", + "type": " Ice" + }, + { + "id": " 246", + "typeTwo": " Ground", + "name": " Larvitar", + "type": " Rock" + }, + { + "id": " 247", + "typeTwo": " Ground", + "name": " Pupitar", + "type": " Rock" + }, + { + "id": " 248", + "typeTwo": " Dark", + "name": " Tyranitar", + "type": " Rock" + }, + { + "id": " 249", + "typeTwo": " Flying", + "name": " Lugia", + "type": " Psychic" + }, + { + "id": " 250", + "typeTwo": " Flying", + "name": " Ho-Oh", + "type": " Fire" + }, + { + "id": " 251", + "typeTwo": " Grass", + "name": " Celebi", + "type": " Psychic" + }, + { + "id": " 256", + "typeTwo": " Fighting", + "name": " Combusken", + "type": " Fire" + }, + { + "id": " 257", + "typeTwo": " Fighting", + "name": " Blaziken", + "type": " Fire" + }, + { + "id": " 259", + "typeTwo": " Ground", + "name": " Marshtomp", + "type": " Water" + }, + { + "id": " 260", + "typeTwo": " Ground", + "name": " Swampert", + "type": " Water" + }, + { + "id": " 267", + "typeTwo": " Flying", + "name": " Beautifly", + "type": " Bug" + }, + { + "id": " 269", + "typeTwo": " Poison", + "name": " Dustox", + "type": " Bug" + }, + { + "id": " 270", + "typeTwo": " Grass", + "name": " Lotad", + "type": " Water" + }, + { + "id": " 271", + "typeTwo": " Grass", + "name": " Lombre", + "type": " Water" + }, + { + "id": " 272", + "typeTwo": " Grass", + "name": " Ludicolo", + "type": " Water" + }, + { + "id": " 274", + "typeTwo": " Dark", + "name": " Nuzleaf", + "type": " Grass" + }, + { + "id": " 275", + "typeTwo": " Dark", + "name": " Shiftry", + "type": " Grass" + }, + { + "id": " 276", + "typeTwo": " Flying", + "name": " Taillow", + "type": " Normal" + }, + { + "id": " 277", + "typeTwo": " Flying", + "name": " Swellow", + "type": " Normal" + }, + { + "id": " 278", + "typeTwo": " Flying", + "name": " Wingull", + "type": " Water" + }, + { + "id": " 279", + "typeTwo": " Flying", + "name": " Pelipper", + "type": " Water" + }, + { + "id": " 283", + "typeTwo": " Water", + "name": " Surskit", + "type": " Bug" + }, + { + "id": " 284", + "typeTwo": " Flying", + "name": " Masquerain", + "type": " Bug" + }, + { + "id": " 286", + "typeTwo": " Fighting", + "name": " Breloom", + "type": " Grass" + }, + { + "id": " 290", + "typeTwo": " Ground", + "name": " Nincada", + "type": " Bug" + }, + { + "id": " 291", + "typeTwo": " Flying", + "name": " Ninjask", + "type": " Bug" + }, + { + "id": " 292", + "typeTwo": " Ghost", + "name": " Shedinja", + "type": " Bug" + }, + { + "id": " 302", + "typeTwo": " Ghost", + "name": " Sableye", + "type": " Dark" + }, + { + "id": " 304", + "typeTwo": " Rock", + "name": " Aron", + "type": " Steel" + }, + { + "id": " 305", + "typeTwo": " Rock", + "name": " Lairon", + "type": " Steel" + }, + { + "id": " 306", + "typeTwo": " Rock", + "name": " Aggron", + "type": " Steel" + }, + { + "id": " 307", + "typeTwo": " Psychic", + "name": " Meditite", + "type": " Fighting" + }, + { + "id": " 308", + "typeTwo": " Psychic", + "name": " Medicham", + "type": " Fighting" + }, + { + "id": " 315", + "typeTwo": " Poison", + "name": " Roselia", + "type": " Grass" + }, + { + "id": " 318", + "typeTwo": " Dark", + "name": " Carvanha", + "type": " Water" + }, + { + "id": " 319", + "typeTwo": " Dark", + "name": " Sharpedo", + "type": " Water" + }, + { + "id": " 322", + "typeTwo": " Ground", + "name": " Numel", + "type": " Fire" + }, + { + "id": " 323", + "typeTwo": " Ground", + "name": " Camerupt", + "type": " Fire" + }, + { + "id": " 329", + "typeTwo": " Dragon", + "name": " Vibrava", + "type": " Ground" + }, + { + "id": " 330", + "typeTwo": " Dragon", + "name": " Flygon", + "type": " Ground" + }, + { + "id": " 332", + "typeTwo": " Dark", + "name": " Cacturne", + "type": " Grass" + }, + { + "id": " 333", + "typeTwo": " Flying", + "name": " Swablu", + "type": " Normal" + }, + { + "id": " 334", + "typeTwo": " Flying", + "name": " Altaria", + "type": " Dragon" + }, + { + "id": " 337", + "typeTwo": " Psychic", + "name": " Lunatone", + "type": " Rock" + }, + { + "id": " 338", + "typeTwo": " Psychic", + "name": " Solrock", + "type": " Rock" + }, + { + "id": " 339", + "typeTwo": " Ground", + "name": " Barboach", + "type": " Water" + }, + { + "id": " 340", + "typeTwo": " Ground", + "name": " Whiscash", + "type": " Water" + }, + { + "id": " 342", + "typeTwo": " Dark", + "name": " Crawdaunt", + "type": " Water" + }, + { + "id": " 343", + "typeTwo": " Psychic", + "name": " Baltoy", + "type": " Ground" + }, + { + "id": " 344", + "typeTwo": " Psychic", + "name": " Claydol", + "type": " Ground" + }, + { + "id": " 345", + "typeTwo": " Grass", + "name": " Lileep", + "type": " Rock" + }, + { + "id": " 346", + "typeTwo": " Grass", + "name": " Cradily", + "type": " Rock" + }, + { + "id": " 347", + "typeTwo": " Bug", + "name": " Anorith", + "type": " Rock" + }, + { + "id": " 348", + "typeTwo": " Bug", + "name": " Armaldo", + "type": " Rock" + }, + { + "id": " 357", + "typeTwo": " Flying", + "name": " Tropius", + "type": " Grass" + }, + { + "id": " 363", + "typeTwo": " Water", + "name": " Spheal", + "type": " Ice" + }, + { + "id": " 364", + "typeTwo": " Water", + "name": " Sealeo", + "type": " Ice" + }, + { + "id": " 365", + "typeTwo": " Water", + "name": " Walrein", + "type": " Ice" + }, + { + "id": " 369", + "typeTwo": " Rock", + "name": " Relicanth", + "type": " Water" + }, + { + "id": " 373", + "typeTwo": " Flying", + "name": " Salamence", + "type": " Dragon" + }, + { + "id": " 374", + "typeTwo": " Psychic", + "name": " Beldum", + "type": " Steel" + }, + { + "id": " 375", + "typeTwo": " Psychic", + "name": " Metang", + "type": " Steel" + }, + { + "id": " 376", + "typeTwo": " Psychic", + "name": " Metagross", + "type": " Steel" + }, + { + "id": " 380", + "typeTwo": " Psychic", + "name": " Latias", + "type": " Dragon" + }, + { + "id": " 381", + "typeTwo": " Psychic", + "name": " Latios", + "type": " Dragon" + }, + { + "id": " 384", + "typeTwo": " Flying", + "name": " Rayquaza", + "type": " Dragon" + }, + { + "id": " 385", + "typeTwo": " Psychic", + "name": " Jirachi", + "type": " Steel" + }, + { + "id": " 389", + "typeTwo": " Ground", + "name": " Torterra", + "type": " Grass" + }, + { + "id": " 391", + "typeTwo": " Fighting", + "name": " Monferno", + "type": " Fire" + }, + { + "id": " 392", + "typeTwo": " Fighting", + "name": " Infernape", + "type": " Fire" + }, + { + "id": " 395", + "typeTwo": " Steel", + "name": " Empoleon", + "type": " Water" + }, + { + "id": " 396", + "typeTwo": " Flying", + "name": " Starly", + "type": " Normal" + }, + { + "id": " 397", + "typeTwo": " Flying", + "name": " Staravia", + "type": " Normal" + }, + { + "id": " 398", + "typeTwo": " Flying", + "name": " Staraptor", + "type": " Normal" + }, + { + "id": " 400", + "typeTwo": " Water", + "name": " Bibarel", + "type": " Normal" + }, + { + "id": " 406", + "typeTwo": " Poison", + "name": " Budew", + "type": " Grass" + }, + { + "id": " 407", + "typeTwo": " Poison", + "name": " Roserade", + "type": " Grass" + }, + { + "id": " 410", + "typeTwo": " Steel", + "name": " Shieldon", + "type": " Rock" + }, + { + "id": " 411", + "typeTwo": " Steel", + "name": " Bastiodon", + "type": " Rock" + }, + { + "id": " 413", + "typeTwo": " Steel", + "name": " Wormadam", + "type": " Bug" + }, + { + "id": " 414", + "typeTwo": " Flying", + "name": " Mothim", + "type": " Bug" + }, + { + "id": " 415", + "typeTwo": " Flying", + "name": " Combee", + "type": " Bug" + }, + { + "id": " 416", + "typeTwo": " Flying", + "name": " Vespiquen", + "type": " Bug" + }, + { + "id": " 423", + "typeTwo": " Ground", + "name": " Gastrodon", + "type": " Water" + }, + { + "id": " 425", + "typeTwo": " Flying", + "name": " Drifloon", + "type": " Ghost" + }, + { + "id": " 426", + "typeTwo": " Flying", + "name": " Drifblim", + "type": " Ghost" + }, + { + "id": " 430", + "typeTwo": " Flying", + "name": " Honchkrow", + "type": " Dark" + }, + { + "id": " 434", + "typeTwo": " Dark", + "name": " Stunky", + "type": " Poison" + }, + { + "id": " 435", + "typeTwo": " Dark", + "name": " Skuntank", + "type": " Poison" + }, + { + "id": " 436", + "typeTwo": " Psychic", + "name": " Bronzor", + "type": " Steel" + }, + { + "id": " 437", + "typeTwo": " Psychic", + "name": " Bronzong", + "type": " Steel" + }, + { + "id": " 441", + "typeTwo": " Flying", + "name": " Chatot", + "type": " Normal" + }, + { + "id": " 442", + "typeTwo": " Dark", + "name": " Spiritomb", + "type": " Ghost" + }, + { + "id": " 443", + "typeTwo": " Ground", + "name": " Gible", + "type": " Dragon" + }, + { + "id": " 444", + "typeTwo": " Ground", + "name": " Gabite", + "type": " Dragon" + }, + { + "id": " 445", + "typeTwo": " Ground", + "name": " Garchomp", + "type": " Dragon" + }, + { + "id": " 448", + "typeTwo": " Steel", + "name": " Lucario", + "type": " Fighting" + }, + { + "id": " 451", + "typeTwo": " Bug", + "name": " Skorupi", + "type": " Poison" + }, + { + "id": " 452", + "typeTwo": " Dark", + "name": " Drapion", + "type": " Poison" + }, + { + "id": " 453", + "typeTwo": " Fighting", + "name": " Croagunk", + "type": " Poison" + }, + { + "id": " 454", + "typeTwo": " Fighting", + "name": " Toxicroak", + "type": " Poison" + }, + { + "id": " 458", + "typeTwo": " Flying", + "name": " Mantyke", + "type": " Water" + }, + { + "id": " 459", + "typeTwo": " Ice", + "name": " Snover", + "type": " Grass" + }, + { + "id": " 460", + "typeTwo": " Ice", + "name": " Abomasnow", + "type": " Grass" + }, + { + "id": " 461", + "typeTwo": " Ice", + "name": " Weavile", + "type": " Dark" + }, + { + "id": " 462", + "typeTwo": " Steel", + "name": " Magnezone", + "type": " Electric" + }, + { + "id": " 464", + "typeTwo": " Rock", + "name": " Rhyperior", + "type": " Ground" + }, + { + "id": " 468", + "typeTwo": " Flying", + "name": " Togekiss", + "type": " Normal" + }, + { + "id": " 469", + "typeTwo": " Flying", + "name": " Yanmega", + "type": " Bug" + }, + { + "id": " 472", + "typeTwo": " Flying", + "name": " Gliscor", + "type": " Ground" + }, + { + "id": " 473", + "typeTwo": " Ground", + "name": " Mamoswine", + "type": " Ice" + }, + { + "id": " 475", + "typeTwo": " Fighting", + "name": " Gallade", + "type": " Psychic" + }, + { + "id": " 476", + "typeTwo": " Steel", + "name": " Probopass", + "type": " Rock" + }, + { + "id": " 478", + "typeTwo": " Ghost", + "name": " Froslass", + "type": " Ice" + }, + { + "id": " 479", + "typeTwo": " Grass", + "name": " Rotom", + "type": " Electric" + }, + { + "id": " 483", + "typeTwo": " Dragon", + "name": " Dialga", + "type": " Steel" + }, + { + "id": " 484", + "typeTwo": " Dragon", + "name": " Palkia", + "type": " Water" + }, + { + "id": " 485", + "typeTwo": " Steel", + "name": " Heatran", + "type": " Fire" + }, + { + "id": " 487", + "typeTwo": " Dragon", + "name": " Giratina", + "type": " Ghost" + }, + { + "id": " 492", + "typeTwo": " Flying", + "name": " Shaymin", + "type": " Grass" + }, + { + "id": " 494", + "typeTwo": " Fire", + "name": " Victini", + "type": " Psychic" + }, + { + "id": " 499", + "typeTwo": " Fighting", + "name": " Pignite", + "type": " Fire" + }, + { + "id": " 500", + "typeTwo": " Fighting", + "name": " Emboar", + "type": " Fire" + }, + { + "id": " 519", + "typeTwo": " Flying", + "name": " Pidove", + "type": " Normal" + }, + { + "id": " 520", + "typeTwo": " Flying", + "name": " Tranquill", + "type": " Normal" + }, + { + "id": " 521", + "typeTwo": " Flying", + "name": " Unfezant", + "type": " Normal" + }, + { + "id": " 527", + "typeTwo": " Flying", + "name": " Woobat", + "type": " Psychic" + }, + { + "id": " 528", + "typeTwo": " Flying", + "name": " Swoobat", + "type": " Psychic" + }, + { + "id": " 530", + "typeTwo": " Steel", + "name": " Excadrill", + "type": " Ground" + }, + { + "id": " 536", + "typeTwo": " Ground", + "name": " Palpitoad", + "type": " Water" + }, + { + "id": " 537", + "typeTwo": " Ground", + "name": " Seismitoad", + "type": " Water" + }, + { + "id": " 540", + "typeTwo": " Grass", + "name": " Sewaddle", + "type": " Bug" + }, + { + "id": " 541", + "typeTwo": " Grass", + "name": " Swadloon", + "type": " Bug" + }, + { + "id": " 542", + "typeTwo": " Grass", + "name": " Leavanny", + "type": " Bug" + }, + { + "id": " 543", + "typeTwo": " Poison", + "name": " Venipede", + "type": " Bug" + }, + { + "id": " 544", + "typeTwo": " Poison", + "name": " Whirlipede", + "type": " Bug" + }, + { + "id": " 545", + "typeTwo": " Poison", + "name": " Scolipede", + "type": " Bug" + }, + { + "id": " 551", + "typeTwo": " Dark", + "name": " Sandile", + "type": " Ground" + }, + { + "id": " 552", + "typeTwo": " Dark", + "name": " Krokorok", + "type": " Ground" + }, + { + "id": " 553", + "typeTwo": " Dark", + "name": " Krookodile", + "type": " Ground" + }, + { + "id": " 555", + "typeTwo": " Psychic", + "name": " Darmanitan", + "type": " Fire" + }, + { + "id": " 557", + "typeTwo": " Rock", + "name": " Dwebble", + "type": " Bug" + }, + { + "id": " 558", + "typeTwo": " Rock", + "name": " Crustle", + "type": " Bug" + }, + { + "id": " 559", + "typeTwo": " Fighting", + "name": " Scraggy", + "type": " Dark" + }, + { + "id": " 560", + "typeTwo": " Fighting", + "name": " Scrafty", + "type": " Dark" + }, + { + "id": " 561", + "typeTwo": " Flying", + "name": " Sigilyph", + "type": " Psychic" + }, + { + "id": " 564", + "typeTwo": " Rock", + "name": " Tirtouga", + "type": " Water" + }, + { + "id": " 565", + "typeTwo": " Rock", + "name": " Carracosta", + "type": " Water" + }, + { + "id": " 566", + "typeTwo": " Flying", + "name": " Archen", + "type": " Rock" + }, + { + "id": " 567", + "typeTwo": " Flying", + "name": " Archeops", + "type": " Rock" + }, + { + "id": " 580", + "typeTwo": " Flying", + "name": " Ducklett", + "type": " Water" + }, + { + "id": " 581", + "typeTwo": " Flying", + "name": " Swanna", + "type": " Water" + }, + { + "id": " 585", + "typeTwo": " Grass", + "name": " Deerling", + "type": " Normal" + }, + { + "id": " 586", + "typeTwo": " Grass", + "name": " Sawsbuck", + "type": " Normal" + }, + { + "id": " 587", + "typeTwo": " Flying", + "name": " Emolga", + "type": " Electric" + }, + { + "id": " 589", + "typeTwo": " Steel", + "name": " Escavalier", + "type": " Bug" + }, + { + "id": " 590", + "typeTwo": " Poison", + "name": " Foongus", + "type": " Grass" + }, + { + "id": " 591", + "typeTwo": " Poison", + "name": " Amoonguss", + "type": " Grass" + }, + { + "id": " 592", + "typeTwo": " Ghost", + "name": " Frillish", + "type": " Water" + }, + { + "id": " 593", + "typeTwo": " Ghost", + "name": " Jellicent", + "type": " Water" + }, + { + "id": " 595", + "typeTwo": " Electric", + "name": " Joltik", + "type": " Bug" + }, + { + "id": " 596", + "typeTwo": " Electric", + "name": " Galvantula", + "type": " Bug" + }, + { + "id": " 597", + "typeTwo": " Steel", + "name": " Ferroseed", + "type": " Grass" + }, + { + "id": " 598", + "typeTwo": " Steel", + "name": " Ferrothorn", + "type": " Grass" + }, + { + "id": " 607", + "typeTwo": " Fire", + "name": " Litwick", + "type": " Ghost" + }, + { + "id": " 608", + "typeTwo": " Fire", + "name": " Lampent", + "type": " Ghost" + }, + { + "id": " 609", + "typeTwo": " Fire", + "name": " Chandelure", + "type": " Ghost" + }, + { + "id": " 618", + "typeTwo": " Electric", + "name": " Stunfisk", + "type": " Ground" + }, + { + "id": " 622", + "typeTwo": " Ghost", + "name": " Golett", + "type": " Ground" + }, + { + "id": " 623", + "typeTwo": " Ghost", + "name": " Golurk", + "type": " Ground" + }, + { + "id": " 624", + "typeTwo": " Steel", + "name": " Pawniard", + "type": " Dark" + }, + { + "id": " 625", + "typeTwo": " Steel", + "name": " Bisharp", + "type": " Dark" + }, + { + "id": " 627", + "typeTwo": " Flying", + "name": " Rufflet", + "type": " Normal" + }, + { + "id": " 628", + "typeTwo": " Flying", + "name": " Braviary", + "type": " Normal" + }, + { + "id": " 629", + "typeTwo": " Flying", + "name": " Vullaby", + "type": " Dark" + }, + { + "id": " 630", + "typeTwo": " Flying", + "name": " Mandibuzz", + "type": " Dark" + }, + { + "id": " 632", + "typeTwo": " Steel", + "name": " Durant", + "type": " Bug" + }, + { + "id": " 633", + "typeTwo": " Dragon", + "name": " Deino", + "type": " Dark" + }, + { + "id": " 634", + "typeTwo": " Dragon", + "name": " Zweilous", + "type": " Dark" + }, + { + "id": " 635", + "typeTwo": " Dragon", + "name": " Hydreigon", + "type": " Dark" + }, + { + "id": " 636", + "typeTwo": " Fire", + "name": " Larvesta", + "type": " Bug" + }, + { + "id": " 637", + "typeTwo": " Fire", + "name": " Volcarona", + "type": " Bug" + }, + { + "id": " 638", + "typeTwo": " Fighting", + "name": " Cobalion", + "type": " Steel" + }, + { + "id": " 639", + "typeTwo": " Fighting", + "name": " Terrakion", + "type": " Rock" + }, + { + "id": " 640", + "typeTwo": " Fighting", + "name": " Virizion", + "type": " Grass" + }, + { + "id": " 642", + "typeTwo": " Flying", + "name": " Thundurus", + "type": " Electric" + }, + { + "id": " 643", + "typeTwo": " Fire", + "name": " Reshiram", + "type": " Dragon" + }, + { + "id": " 644", + "typeTwo": " Electric", + "name": " Zekrom ", + "type": " Dragon" + }, + { + "id": " 645", + "typeTwo": " Flying", + "name": " Landorus", + "type": " Ground" + }, + { + "id": " 646", + "typeTwo": " Ice", + "name": " Kyurem", + "type": " Dragon" + }, + { + "id": " 647", + "typeTwo": " Fighting", + "name": " Keldeo", + "type": " Water" + }, + { + "id": " 648", + "typeTwo": " Fighting", + "name": " Meloetta", + "type": " Normal" + }, + { + "id": " 649", + "typeTwo": " Steel", + "name": " Genesect", + "type": " Bug" + } +] diff --git a/Chapter2/pokemonXml.xml b/Chapter2/pokemonXml.xml new file mode 100644 index 0000000..35b25f4 --- /dev/null +++ b/Chapter2/pokemonXml.xml @@ -0,0 +1,70 @@ + + + + 001 + Poison + Bulbasaur + Grass + + + 002 + Poison + Ivysaur + Grass + + + 003 + Poison + Venusaur + Grass + + + 006 + Flying + Charizard + Fire + + + 012 + Flying + Butterfree + Bug + + + 013 + Poison + Weedle + Bug + + + 014 + Poison + Kakuna + Bug + + + 015 + Poison + Beedrill + Bug + + + 016 + Flying + Pidgey + Normal + + + 017 + Flying + Pidgeotto + Normal + + + 018 + Flying + Pidgeot + Normal + + + \ No newline at end of file diff --git a/Chapter3/Barchart.html b/Chapter3/Barchart.html new file mode 100644 index 0000000..edb88d7 --- /dev/null +++ b/Chapter3/Barchart.html @@ -0,0 +1,85 @@ + + + + + \ No newline at end of file diff --git a/Chapter3/BarchartAnimated.html b/Chapter3/BarchartAnimated.html new file mode 100644 index 0000000..a2359c0 --- /dev/null +++ b/Chapter3/BarchartAnimated.html @@ -0,0 +1,83 @@ + + + + + \ No newline at end of file diff --git a/Chapter3/Line-chart.html b/Chapter3/Line-chart.html new file mode 100644 index 0000000..1e4d172 --- /dev/null +++ b/Chapter3/Line-chart.html @@ -0,0 +1,77 @@ + + + + + diff --git a/Chapter3/MultiLine-chart.html b/Chapter3/MultiLine-chart.html new file mode 100644 index 0000000..ac8ea4f --- /dev/null +++ b/Chapter3/MultiLine-chart.html @@ -0,0 +1,106 @@ + + + + + diff --git a/Chapter3/Pie-chart.html b/Chapter3/Pie-chart.html new file mode 100644 index 0000000..ef124ea --- /dev/null +++ b/Chapter3/Pie-chart.html @@ -0,0 +1,58 @@ + + + + \ No newline at end of file diff --git a/Chapter3/Scatterplot.html b/Chapter3/Scatterplot.html new file mode 100644 index 0000000..84e1d2d --- /dev/null +++ b/Chapter3/Scatterplot.html @@ -0,0 +1,56 @@ + + + + + + + diff --git a/Chapter3/SumJson.py b/Chapter3/SumJson.py new file mode 100644 index 0000000..3e149b5 --- /dev/null +++ b/Chapter3/SumJson.py @@ -0,0 +1,27 @@ +import json +import csv +from pprint import pprint + +typePokemon = {} + +with open("pokemon.json") as f: + data = json.loads(f.read()) + + for line in data: + + if line["type"] not in typePokemon: + typePokemon[line["type"]] = 1 + else: + typePokemon[line["type"]] = typePokemon.get(line["type"]) + 1 + +with open("sumPokemon.csv", "w") as a: + w = csv.writer(a) + + for key, value in sorted(typePokemon.items(), key=lambda x: x[1]): + w.writerow([key,str(value)]) + + + pprint(typePokemon) + + + diff --git a/Chapter3/line.tsv b/Chapter3/line.tsv new file mode 100644 index 0000000..5ec7344 --- /dev/null +++ b/Chapter3/line.tsv @@ -0,0 +1,595 @@ +date close +1-May-12 582.13 +30-Apr-12 583.98 +27-Apr-12 603.00 +26-Apr-12 607.70 +25-Apr-12 610.00 +24-Apr-12 560.28 +23-Apr-12 571.70 +20-Apr-12 572.98 +19-Apr-12 587.44 +18-Apr-12 608.34 +17-Apr-12 609.70 +16-Apr-12 580.13 +13-Apr-12 605.23 +12-Apr-12 622.77 +11-Apr-12 626.20 +10-Apr-12 628.44 +9-Apr-12 636.23 +5-Apr-12 633.68 +4-Apr-12 624.31 +3-Apr-12 629.32 +2-Apr-12 618.63 +30-Mar-12 599.55 +29-Mar-12 609.86 +28-Mar-12 617.62 +27-Mar-12 614.48 +26-Mar-12 606.98 +23-Mar-12 596.05 +22-Mar-12 599.34 +21-Mar-12 602.50 +20-Mar-12 605.96 +19-Mar-12 601.10 +16-Mar-12 585.57 +15-Mar-12 585.56 +14-Mar-12 589.58 +13-Mar-12 568.10 +12-Mar-12 552.00 +9-Mar-12 545.17 +8-Mar-12 541.99 +7-Mar-12 530.69 +6-Mar-12 530.26 +5-Mar-12 533.16 +2-Mar-12 545.18 +1-Mar-12 544.47 +29-Feb-12 542.44 +28-Feb-12 535.41 +27-Feb-12 525.76 +24-Feb-12 522.41 +23-Feb-12 516.39 +22-Feb-12 513.04 +21-Feb-12 514.85 +17-Feb-12 502.12 +16-Feb-12 502.21 +15-Feb-12 497.67 +14-Feb-12 509.46 +13-Feb-12 502.60 +10-Feb-12 493.42 +9-Feb-12 493.17 +8-Feb-12 476.68 +7-Feb-12 468.83 +6-Feb-12 463.97 +3-Feb-12 459.68 +2-Feb-12 455.12 +1-Feb-12 456.19 +31-Jan-12 456.48 +30-Jan-12 453.01 +27-Jan-12 447.28 +26-Jan-12 444.63 +25-Jan-12 446.66 +24-Jan-12 420.41 +23-Jan-12 427.41 +20-Jan-12 420.30 +19-Jan-12 427.75 +18-Jan-12 429.11 +17-Jan-12 424.70 +13-Jan-12 419.81 +12-Jan-12 421.39 +11-Jan-12 422.55 +10-Jan-12 423.24 +9-Jan-12 421.73 +6-Jan-12 422.40 +5-Jan-12 418.03 +4-Jan-12 413.44 +3-Jan-12 411.23 +30-Dec-11 405.00 +29-Dec-11 405.12 +28-Dec-11 402.64 +27-Dec-11 406.53 +23-Dec-11 403.43 +22-Dec-11 398.55 +21-Dec-11 396.44 +20-Dec-11 395.95 +19-Dec-11 382.21 +16-Dec-11 381.02 +15-Dec-11 378.94 +14-Dec-11 380.19 +13-Dec-11 388.81 +12-Dec-11 391.84 +9-Dec-11 393.62 +8-Dec-11 390.66 +7-Dec-11 389.09 +6-Dec-11 390.95 +5-Dec-11 393.01 +2-Dec-11 389.70 +1-Dec-11 387.93 +30-Nov-11 382.20 +29-Nov-11 373.20 +28-Nov-11 376.12 +25-Nov-11 363.57 +23-Nov-11 366.99 +22-Nov-11 376.51 +21-Nov-11 369.01 +18-Nov-11 374.94 +17-Nov-11 377.41 +16-Nov-11 384.77 +15-Nov-11 388.83 +14-Nov-11 379.26 +11-Nov-11 384.62 +10-Nov-11 385.22 +9-Nov-11 395.28 +8-Nov-11 406.23 +7-Nov-11 399.73 +4-Nov-11 400.24 +3-Nov-11 403.07 +2-Nov-11 397.41 +1-Nov-11 396.51 +31-Oct-11 404.78 +28-Oct-11 404.95 +27-Oct-11 404.69 +26-Oct-11 400.60 +25-Oct-11 397.77 +24-Oct-11 405.77 +21-Oct-11 392.87 +20-Oct-11 395.31 +19-Oct-11 398.62 +18-Oct-11 422.24 +17-Oct-11 419.99 +14-Oct-11 422.00 +13-Oct-11 408.43 +12-Oct-11 402.19 +11-Oct-11 400.29 +10-Oct-11 388.81 +7-Oct-11 369.80 +6-Oct-11 377.37 +5-Oct-11 378.25 +4-Oct-11 372.50 +3-Oct-11 374.60 +30-Sep-11 381.32 +29-Sep-11 390.57 +28-Sep-11 397.01 +27-Sep-11 399.26 +26-Sep-11 403.17 +23-Sep-11 404.30 +22-Sep-11 401.82 +21-Sep-11 412.14 +20-Sep-11 413.45 +19-Sep-11 411.63 +16-Sep-11 400.50 +15-Sep-11 392.96 +14-Sep-11 389.30 +13-Sep-11 384.62 +12-Sep-11 379.94 +9-Sep-11 377.48 +8-Sep-11 384.14 +7-Sep-11 383.93 +6-Sep-11 379.74 +2-Sep-11 374.05 +1-Sep-11 381.03 +31-Aug-11 384.83 +30-Aug-11 389.99 +29-Aug-11 389.97 +26-Aug-11 383.58 +25-Aug-11 373.72 +24-Aug-11 376.18 +23-Aug-11 373.60 +22-Aug-11 356.44 +19-Aug-11 356.03 +18-Aug-11 366.05 +17-Aug-11 380.44 +16-Aug-11 380.48 +15-Aug-11 383.41 +12-Aug-11 376.99 +11-Aug-11 373.70 +10-Aug-11 363.69 +9-Aug-11 374.01 +8-Aug-11 353.21 +5-Aug-11 373.62 +4-Aug-11 377.37 +3-Aug-11 392.57 +2-Aug-11 388.91 +1-Aug-11 396.75 +29-Jul-11 390.48 +28-Jul-11 391.82 +27-Jul-11 392.59 +26-Jul-11 403.41 +25-Jul-11 398.50 +22-Jul-11 393.30 +21-Jul-11 387.29 +20-Jul-11 386.90 +19-Jul-11 376.85 +18-Jul-11 373.80 +15-Jul-11 364.92 +14-Jul-11 357.77 +13-Jul-11 358.02 +12-Jul-11 353.75 +11-Jul-11 354.00 +8-Jul-11 359.71 +7-Jul-11 357.20 +6-Jul-11 351.76 +5-Jul-11 349.43 +1-Jul-11 343.26 +30-Jun-11 335.67 +29-Jun-11 334.04 +28-Jun-11 335.26 +27-Jun-11 332.04 +24-Jun-11 326.35 +23-Jun-11 331.23 +22-Jun-11 322.61 +21-Jun-11 325.30 +20-Jun-11 315.32 +17-Jun-11 320.26 +16-Jun-11 325.16 +15-Jun-11 326.75 +14-Jun-11 332.44 +13-Jun-11 326.60 +10-Jun-11 325.90 +9-Jun-11 331.49 +8-Jun-11 332.24 +7-Jun-11 332.04 +6-Jun-11 338.04 +3-Jun-11 343.44 +2-Jun-11 346.10 +1-Jun-11 345.51 +31-May-11 347.83 +27-May-11 337.41 +26-May-11 335.00 +25-May-11 336.78 +24-May-11 332.19 +23-May-11 334.40 +20-May-11 335.22 +19-May-11 340.53 +18-May-11 339.87 +17-May-11 336.14 +16-May-11 333.30 +13-May-11 340.50 +12-May-11 346.57 +11-May-11 347.23 +10-May-11 349.45 +9-May-11 347.60 +6-May-11 346.66 +5-May-11 346.75 +4-May-11 349.57 +3-May-11 348.20 +2-May-11 346.28 +29-Apr-11 350.13 +28-Apr-11 346.75 +27-Apr-11 350.15 +26-Apr-11 350.42 +25-Apr-11 353.01 +21-Apr-11 350.70 +20-Apr-11 342.41 +19-Apr-11 337.86 +18-Apr-11 331.85 +15-Apr-11 327.46 +14-Apr-11 332.42 +13-Apr-11 336.13 +12-Apr-11 332.40 +11-Apr-11 330.80 +8-Apr-11 335.06 +7-Apr-11 338.08 +6-Apr-11 338.04 +5-Apr-11 338.89 +4-Apr-11 341.19 +1-Apr-11 344.56 +31-Mar-11 348.51 +30-Mar-11 348.63 +29-Mar-11 350.96 +28-Mar-11 350.44 +25-Mar-11 351.54 +24-Mar-11 344.97 +23-Mar-11 339.19 +22-Mar-11 341.20 +21-Mar-11 339.30 +18-Mar-11 330.67 +17-Mar-11 334.64 +16-Mar-11 330.01 +15-Mar-11 345.43 +14-Mar-11 353.56 +11-Mar-11 351.99 +10-Mar-11 346.67 +9-Mar-11 352.47 +8-Mar-11 355.76 +7-Mar-11 355.36 +4-Mar-11 360.00 +3-Mar-11 359.56 +2-Mar-11 352.12 +1-Mar-11 349.31 +28-Feb-11 353.21 +25-Feb-11 348.16 +24-Feb-11 342.88 +23-Feb-11 342.62 +22-Feb-11 338.61 +18-Feb-11 350.56 +17-Feb-11 358.30 +16-Feb-11 363.13 +15-Feb-11 359.90 +14-Feb-11 359.18 +11-Feb-11 356.85 +10-Feb-11 354.54 +9-Feb-11 358.16 +8-Feb-11 355.20 +7-Feb-11 351.88 +4-Feb-11 346.50 +3-Feb-11 343.44 +2-Feb-11 344.32 +1-Feb-11 345.03 +31-Jan-11 339.32 +28-Jan-11 336.10 +27-Jan-11 343.21 +26-Jan-11 343.85 +25-Jan-11 341.40 +24-Jan-11 337.45 +21-Jan-11 326.72 +20-Jan-11 332.68 +19-Jan-11 338.84 +18-Jan-11 340.65 +14-Jan-11 348.48 +13-Jan-11 345.68 +12-Jan-11 344.42 +11-Jan-11 341.64 +10-Jan-11 342.46 +7-Jan-11 336.12 +6-Jan-11 333.73 +5-Jan-11 334.00 +4-Jan-11 331.29 +3-Jan-11 329.57 +31-Dec-10 322.56 +30-Dec-10 323.66 +29-Dec-10 325.29 +28-Dec-10 325.47 +27-Dec-10 324.68 +23-Dec-10 323.60 +22-Dec-10 325.16 +21-Dec-10 324.20 +20-Dec-10 322.21 +17-Dec-10 320.61 +16-Dec-10 321.25 +15-Dec-10 320.36 +14-Dec-10 320.29 +13-Dec-10 321.67 +10-Dec-10 320.56 +9-Dec-10 319.76 +8-Dec-10 321.01 +7-Dec-10 318.21 +6-Dec-10 320.15 +3-Dec-10 317.44 +2-Dec-10 318.15 +1-Dec-10 316.40 +30-Nov-10 311.15 +29-Nov-10 316.87 +26-Nov-10 315.00 +24-Nov-10 314.80 +23-Nov-10 308.73 +22-Nov-10 313.36 +19-Nov-10 306.73 +18-Nov-10 308.43 +17-Nov-10 300.50 +16-Nov-10 301.59 +15-Nov-10 307.04 +12-Nov-10 308.03 +11-Nov-10 316.66 +10-Nov-10 318.03 +9-Nov-10 316.08 +8-Nov-10 318.62 +5-Nov-10 317.13 +4-Nov-10 318.27 +3-Nov-10 312.80 +2-Nov-10 309.36 +1-Nov-10 304.18 +29-Oct-10 300.98 +28-Oct-10 305.24 +27-Oct-10 307.83 +26-Oct-10 308.05 +25-Oct-10 308.84 +22-Oct-10 307.47 +21-Oct-10 309.52 +20-Oct-10 310.53 +19-Oct-10 309.49 +18-Oct-10 318.00 +15-Oct-10 314.74 +14-Oct-10 302.31 +13-Oct-10 300.14 +12-Oct-10 298.54 +11-Oct-10 295.36 +8-Oct-10 294.07 +7-Oct-10 289.22 +6-Oct-10 289.19 +5-Oct-10 288.94 +4-Oct-10 278.64 +1-Oct-10 282.52 +30-Sep-10 283.75 +29-Sep-10 287.37 +28-Sep-10 286.86 +27-Sep-10 291.16 +24-Sep-10 292.32 +23-Sep-10 288.92 +22-Sep-10 287.75 +21-Sep-10 283.77 +20-Sep-10 283.23 +17-Sep-10 275.37 +16-Sep-10 276.57 +15-Sep-10 270.22 +14-Sep-10 268.06 +13-Sep-10 267.04 +10-Sep-10 263.41 +9-Sep-10 263.07 +8-Sep-10 262.92 +7-Sep-10 257.81 +6-Sep-10 258.77 +3-Sep-10 258.77 +2-Sep-10 252.17 +1-Sep-10 250.33 +31-Aug-10 243.10 +30-Aug-10 242.50 +27-Aug-10 241.62 +26-Aug-10 240.28 +25-Aug-10 242.89 +24-Aug-10 239.93 +23-Aug-10 245.80 +20-Aug-10 249.64 +19-Aug-10 249.88 +18-Aug-10 253.07 +17-Aug-10 251.97 +16-Aug-10 247.64 +13-Aug-10 249.10 +12-Aug-10 251.79 +11-Aug-10 250.19 +10-Aug-10 259.41 +9-Aug-10 261.75 +6-Aug-10 260.09 +5-Aug-10 261.70 +4-Aug-10 262.98 +3-Aug-10 261.93 +2-Aug-10 261.85 +30-Jul-10 257.25 +29-Jul-10 258.11 +28-Jul-10 260.96 +27-Jul-10 264.08 +26-Jul-10 259.28 +23-Jul-10 259.94 +22-Jul-10 259.02 +21-Jul-10 254.24 +20-Jul-10 251.89 +19-Jul-10 245.58 +16-Jul-10 249.90 +15-Jul-10 251.45 +14-Jul-10 252.73 +13-Jul-10 251.80 +12-Jul-10 257.28 +9-Jul-10 259.62 +8-Jul-10 258.09 +7-Jul-10 258.66 +6-Jul-10 248.63 +5-Jul-10 246.94 +2-Jul-10 246.94 +1-Jul-10 248.48 +30-Jun-10 251.53 +29-Jun-10 256.17 +28-Jun-10 268.30 +25-Jun-10 266.70 +24-Jun-10 269.00 +23-Jun-10 270.97 +22-Jun-10 273.85 +21-Jun-10 270.17 +18-Jun-10 274.07 +17-Jun-10 271.87 +16-Jun-10 267.25 +15-Jun-10 259.69 +14-Jun-10 254.28 +11-Jun-10 253.51 +10-Jun-10 250.51 +9-Jun-10 243.20 +8-Jun-10 249.33 +7-Jun-10 250.94 +4-Jun-10 255.96 +3-Jun-10 263.12 +2-Jun-10 263.95 +1-Jun-10 260.83 +31-May-10 256.88 +28-May-10 256.88 +27-May-10 253.35 +26-May-10 244.11 +25-May-10 245.22 +24-May-10 246.76 +21-May-10 242.32 +20-May-10 237.76 +19-May-10 248.34 +18-May-10 252.36 +17-May-10 254.22 +14-May-10 253.82 +13-May-10 258.36 +12-May-10 262.09 +11-May-10 256.52 +10-May-10 253.99 +7-May-10 235.86 +6-May-10 246.25 +5-May-10 255.98 +4-May-10 258.68 +3-May-10 266.35 +30-Apr-10 261.09 +29-Apr-10 268.64 +28-Apr-10 261.60 +27-Apr-10 262.04 +26-Apr-10 269.50 +23-Apr-10 270.83 +22-Apr-10 266.47 +21-Apr-10 259.22 +20-Apr-10 244.59 +19-Apr-10 247.07 +16-Apr-10 247.40 +15-Apr-10 248.92 +14-Apr-10 245.69 +13-Apr-10 242.43 +12-Apr-10 242.29 +9-Apr-10 241.79 +8-Apr-10 239.95 +7-Apr-10 240.60 +6-Apr-10 239.54 +5-Apr-10 238.49 +2-Apr-10 235.97 +1-Apr-10 235.97 +31-Mar-10 235.00 +30-Mar-10 235.84 +29-Mar-10 232.39 +26-Mar-10 230.90 +25-Mar-10 226.65 +24-Mar-10 229.37 +23-Mar-10 228.36 +22-Mar-10 224.75 +19-Mar-10 222.25 +18-Mar-10 224.65 +17-Mar-10 224.12 +16-Mar-10 224.45 +15-Mar-10 223.84 +12-Mar-10 226.60 +11-Mar-10 225.50 +10-Mar-10 224.84 +9-Mar-10 223.02 +8-Mar-10 219.08 +5-Mar-10 218.95 +4-Mar-10 210.71 +3-Mar-10 209.33 +2-Mar-10 208.85 +1-Mar-10 208.99 +26-Feb-10 204.62 +25-Feb-10 202.00 +24-Feb-10 200.66 +23-Feb-10 197.06 +22-Feb-10 200.42 +19-Feb-10 201.67 +18-Feb-10 202.93 +17-Feb-10 202.55 +16-Feb-10 203.40 +15-Feb-10 200.38 +12-Feb-10 200.38 +11-Feb-10 198.67 +10-Feb-10 195.12 +9-Feb-10 196.19 +8-Feb-10 194.12 +5-Feb-10 195.46 +4-Feb-10 192.05 +3-Feb-10 199.23 +2-Feb-10 195.86 +1-Feb-10 194.73 +29-Jan-10 192.06 +28-Jan-10 199.29 +27-Jan-10 207.88 +26-Jan-10 205.94 +25-Jan-10 203.08 +22-Jan-10 197.75 +21-Jan-10 208.07 +20-Jan-10 211.72 +19-Jan-10 215.04 +18-Jan-10 205.93 +15-Jan-10 205.93 +14-Jan-10 209.43 +13-Jan-10 210.65 +12-Jan-10 207.72 +11-Jan-10 210.11 +8-Jan-10 211.98 +7-Jan-10 210.58 +6-Jan-10 210.97 +5-Jan-10 214.38 +4-Jan-10 214.01 +1-Jan-10 210.73 \ No newline at end of file diff --git a/Chapter3/pokemonByType.csv b/Chapter3/pokemonByType.csv new file mode 100644 index 0000000..eb6528a --- /dev/null +++ b/Chapter3/pokemonByType.csv @@ -0,0 +1,17 @@ +type,amount +Bug,45 +Dark,16 +Dragon,12 +Electric,7 +Fighting,3 +Fire,14 +Ghost,10 +Grass,31 +Ground,17 +Ice,11 +Normal,29 +Poison,11 +Psychic,9 +Rock,24 +Steel,13 +Water,45 diff --git a/Chapter3/pokemonByType.tsv b/Chapter3/pokemonByType.tsv new file mode 100644 index 0000000..083316a --- /dev/null +++ b/Chapter3/pokemonByType.tsv @@ -0,0 +1,17 @@ +type amount +Dark 16 +Bug 45 +Dragon 12 +Electric 7 +Fighting 3 +Fire 14 +Ghost 10 +Grass 31 +Ground 17 +Ice 11 +Normal 29 +Poison 11 +Psychic 9 +Rock 24 +Steel 13 +Water 45