Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pandas learning material #2

Merged
merged 1 commit into from
Feb 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions pandas/data/baseball14.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
playerID,yearID,stint,teamID,lgID,G,AB,R,H,2B,3B,HR,RBI,SB,CS,BB,SO,IBB,HBP,SH,SF,GIDP
altuvjo01,2014,1,HOU,AL,158,660,85,225,47,3,7,59.0,56.0,9.0,36,53.0,7.0,5.0,1.0,5.0,20.0
cartech02,2014,1,HOU,AL,145,507,68,115,21,1,37,88.0,5.0,2.0,56,182.0,6.0,5.0,0.0,4.0,12.0
castrja01,2014,1,HOU,AL,126,465,43,103,21,2,14,56.0,1.0,0.0,34,151.0,1.0,9.0,1.0,3.0,11.0
corpoca01,2014,1,HOU,AL,55,170,22,40,6,0,6,19.0,0.0,0.0,14,37.0,0.0,3.0,1.0,2.0,3.0
dominma01,2014,1,HOU,AL,157,564,51,121,17,0,16,57.0,0.0,1.0,29,125.0,2.0,5.0,2.0,7.0,23.0
fowlede01,2014,1,HOU,AL,116,434,61,120,21,4,8,35.0,11.0,4.0,66,108.0,2.0,3.0,1.0,1.0,6.0
gonzama01,2014,1,HOU,AL,103,285,33,79,15,1,6,23.0,2.0,4.0,17,58.0,0.0,4.0,4.0,0.0,6.0
grossro01,2014,1,HOU,AL,103,360,42,84,14,2,6,37.0,9.0,3.0,55,105.0,1.0,2.0,3.0,2.0,7.0
guzmaje01,2014,1,HOU,AL,69,165,10,31,4,0,2,9.0,3.0,0.0,19,52.0,0.0,0.0,0.0,0.0,4.0
hoeslj01,2014,1,HOU,AL,55,122,12,21,5,0,3,11.0,0.0,0.0,10,31.0,0.0,0.0,1.0,3.0,5.0
krausma01,2014,1,HOU,AL,67,186,16,36,6,0,6,21.0,0.0,0.0,21,54.0,0.0,1.0,0.0,0.0,7.0
marisja01,2014,2,HOU,AL,51,173,18,47,8,0,3,19.0,6.0,3.0,5,48.0,2.0,3.0,2.0,3.0,2.0
preslal01,2014,1,HOU,AL,89,254,22,62,6,1,6,19.0,5.0,1.0,13,44.0,0.0,1.0,1.0,2.0,3.0
singljo02,2014,1,HOU,AL,95,310,42,52,13,0,13,44.0,2.0,3.0,50,134.0,1.0,1.0,0.0,1.0,4.0
springe01,2014,1,HOU,AL,78,295,45,68,8,1,20,51.0,5.0,2.0,39,114.0,4.0,9.0,0.0,2.0,4.0
villajo01,2014,1,HOU,AL,87,263,31,55,13,2,7,27.0,17.0,4.0,19,80.0,1.0,2.0,4.0,1.0,4.0
16 changes: 16 additions & 0 deletions pandas/data/baseball15.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
playerID,yearID,stint,teamID,lgID,G,AB,R,H,2B,3B,HR,RBI,SB,CS,BB,SO,IBB,HBP,SH,SF,GIDP
altuvjo01,2015,1,HOU,AL,154,638,86,200,40,4,15,66.0,38.0,13.0,33,67.0,8.0,9.0,3.0,6.0,17.0
cartech02,2015,1,HOU,AL,129,391,50,78,17,0,24,64.0,1.0,2.0,57,151.0,1.0,6.0,0.0,5.0,5.0
castrja01,2015,1,HOU,AL,104,337,38,71,19,0,11,31.0,0.0,0.0,33,115.0,1.0,2.0,0.0,3.0,5.0
congeha01,2015,1,HOU,AL,73,201,25,46,11,0,11,33.0,0.0,1.0,23,63.0,0.0,2.0,1.0,2.0,6.0
correca01,2015,1,HOU,AL,99,387,52,108,22,1,22,68.0,14.0,4.0,40,78.0,2.0,1.0,0.0,4.0,10.0
gattiev01,2015,1,HOU,AL,153,566,66,139,20,11,27,88.0,0.0,1.0,30,119.0,3.0,3.0,0.0,5.0,13.0
gomezca01,2015,2,HOU,AL,41,149,19,36,9,0,4,13.0,10.0,3.0,8,31.0,1.0,2.0,3.0,1.0,1.0
gonzama01,2015,1,HOU,AL,120,344,44,96,18,1,12,34.0,4.0,5.0,16,74.0,0.0,3.0,7.0,0.0,9.0
lowrije01,2015,1,HOU,AL,69,230,35,51,14,0,9,30.0,1.0,0.0,28,43.0,5.0,3.0,0.0,2.0,3.0
marisja01,2015,1,HOU,AL,133,339,46,80,15,4,9,36.0,24.0,9.0,18,105.0,0.0,5.0,6.0,4.0,2.0
rasmuco01,2015,1,HOU,AL,137,432,67,103,23,2,25,61.0,2.0,1.0,47,154.0,0.0,2.0,1.0,3.0,6.0
springe01,2015,1,HOU,AL,102,388,59,107,19,2,16,41.0,16.0,4.0,50,109.0,0.0,8.0,2.0,3.0,4.0
tuckepr01,2015,1,HOU,AL,98,300,35,73,19,0,13,33.0,0.0,2.0,20,68.0,0.0,3.0,0.0,0.0,3.0
valbulu01,2015,1,HOU,AL,132,434,62,97,18,0,25,56.0,1.0,0.0,50,106.0,1.0,6.0,0.0,3.0,13.0
villajo01,2015,1,HOU,AL,53,116,18,33,7,1,2,11.0,7.0,2.0,10,29.0,0.0,0.0,1.0,1.0,3.0
17 changes: 17 additions & 0 deletions pandas/data/baseball16.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
playerID,yearID,stint,teamID,lgID,G,AB,R,H,2B,3B,HR,RBI,SB,CS,BB,SO,IBB,HBP,SH,SF,GIDP
altuvjo01,2016,1,HOU,AL,161,640,108,216,42,5,24,96.0,30.0,10.0,60,70.0,11.0,7.0,3.0,7.0,15.0
bregmal01,2016,1,HOU,AL,49,201,31,53,13,3,8,34.0,2.0,0.0,15,52.0,0.0,0.0,0.0,1.0,1.0
castrja01,2016,1,HOU,AL,113,329,41,69,16,3,11,32.0,2.0,1.0,45,123.0,0.0,1.0,1.0,0.0,9.0
correca01,2016,1,HOU,AL,153,577,76,158,36,3,20,96.0,13.0,3.0,75,139.0,5.0,5.0,0.0,3.0,12.0
gattiev01,2016,1,HOU,AL,128,447,58,112,19,0,32,72.0,2.0,1.0,43,127.0,6.0,4.0,0.0,5.0,12.0
gomezca01,2016,1,HOU,AL,85,295,27,62,16,1,5,29.0,13.0,2.0,21,100.0,2.0,4.0,3.0,0.0,11.0
gonzama01,2016,1,HOU,AL,141,484,55,123,26,3,13,51.0,12.0,6.0,22,118.0,1.0,5.0,6.0,1.0,16.0
gourryu01,2016,1,HOU,AL,36,130,13,34,7,0,3,15.0,1.0,1.0,5,12.0,0.0,1.0,0.0,1.0,7.0
kempto01,2016,1,HOU,AL,59,120,15,26,4,3,1,7.0,2.0,1.0,14,27.0,0.0,0.0,1.0,1.0,5.0
marisja01,2016,1,HOU,AL,118,287,40,60,18,1,5,21.0,10.0,5.0,16,83.0,0.0,3.0,4.0,1.0,4.0
rasmuco01,2016,1,HOU,AL,107,369,38,76,10,0,15,54.0,4.0,1.0,43,121.0,0.0,0.0,1.0,4.0,5.0
reedaj01,2016,1,HOU,AL,45,122,11,20,3,0,3,8.0,0.0,0.0,18,48.0,0.0,0.0,0.0,1.0,1.0
springe01,2016,1,HOU,AL,162,644,116,168,29,5,29,82.0,9.0,10.0,88,178.0,2.0,11.0,0.0,1.0,12.0
tuckepr01,2016,1,HOU,AL,48,134,11,22,8,1,4,8.0,0.0,0.0,8,40.0,0.0,2.0,0.0,0.0,2.0
valbulu01,2016,1,HOU,AL,90,292,38,76,17,1,13,40.0,1.0,1.0,44,81.0,2.0,1.0,3.0,2.0,5.0
whitety01,2016,1,HOU,AL,86,249,24,54,16,0,8,28.0,1.0,0.0,23,65.0,1.0,2.0,0.0,2.0,6.0
7,536 changes: 7,536 additions & 0 deletions pandas/data/college.csv

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions pandas/data/college_data_dictionary.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
column_name,description
INSTNM,Institution Name
CITY,City Location
STABBR,State Abbreviation
HBCU,Historically Black College or University
MENONLY,0/1 Men Only
WOMENONLY,0/1 Women only
RELAFFIL,0/1 Religious Affiliation
SATVRMID,SAT Verbal Median
SATMTMID,SAT Math Median
DISTANCEONLY,Distance Education Only
UGDS,Undergraduate Enrollment
UGDS_WHITE,Percent Undergrad White
UGDS_BLACK,Percent Undergrad Black
UGDS_HISP,Percent Undergrad Hispanic
UGDS_ASIAN,Percent Undergrad Asian
UGDS_AIAN,Percent Undergrad American Indian/Alaskan Native
UGDS_NHPI,Percent Undergrad Native Hawaiian/Pacific Islander
UGDS_2MOR,Percent Undergrad 2 or more races
UGDS_NRA,Percent Undergrad non-resident aliens
UGDS_UNKN,Percent Undergrad race unknown
PPTUG_EF,Percent Students part-time
CURROPER,0/1 Currently Operating
PCTPELL,Percent Students with Pell grant
PCTFLOAN,Percent Students with federal loan
UG25ABV,Percent Students Older than 25
MD_EARN_WNE_P10,Median Earnings 10 years after enrollment
GRAD_DEBT_MDN_SUPP,Median debt of completers
5 changes: 5 additions & 0 deletions pandas/data/e1.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
A,B,C
1,0,0
1,1,0
0,1,0
0,0,1
5 changes: 5 additions & 0 deletions pandas/data/e2.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
A,B,C,label
1,0,0,A
1,1,0,AB
0,1,0,B
0,0,1,C
Loading