the data for the following R pub
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias pip-upgrade-all="echo 'pip list -o | cut -d \" \" -f1 | xargs -n1 pip install -U'; pip list -o | cut -d ' ' -f1 | xargs -n1 pip install -U" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import numpy as np | |
import sys | |
import json | |
def csvToArray(csvfile, skeys=[], ikeys=[], fkeys=[], delimiter=',', vbose=0): | |
ifp = open(csvfile,'r') | |
hd = ifp.next() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
year | home_away | withPitcher | IPouts | BIP | AshburnPO | |
---|---|---|---|---|---|---|
1950 | away | boroh101 | 9 | 8 | 0 | |
1950 | home | boroh101 | 3 | 5 | 0 | |
1950 | away | britj102 | 5 | 6 | 0 | |
1950 | home | britj102 | 6 | 5 | 1 | |
1950 | away | candm101 | 25 | 34 | 2 | |
1950 | home | candm101 | 31 | 38 | 5 | |
1950 | away | churb101 | 162 | 181 | 24 | |
1950 | home | churb101 | 206 | 236 | 24 | |
1950 | away | donnb101 | 37 | 44 | 3 |
csv file of lineup slot and fielding position for baseball lineups going back to 1902
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
teamid | yearid | playerid | pa | namefirst | namelast | namefrac | nameweight | birthcountry |
---|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The MIT License (MIT) | |
Copyright (c) 2016 Ben Dilday | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SO |
We can't make this file beautiful and searchable because it's too large.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
game_id,home_team,away_team,offender,recip,pit_id,bat_id,bat_ondeck_id,inn,outs,s1,s2,s3,s4,s5,s6,sTotal | |
BAL196104162,BAL,MIN,MIN1961,BAL1961,kralj101,triag101,hansr102,1,1,9,3,3,3,0,0,18 | |
BAL196104240,BAL,CLE,BAL1961,CLE1961,pappm101,kirkw101,philb102,6,1,4,3,0,3,0,0,10 | |
BAL196105170,BAL,DET,BAL1961,DET1961,fishj101,cashn101,boros101,7,1,3,3,0,3,0,0,9 | |
BAL196106062,BAL,LAA,LAA1961,BAL1961,mcbrk101,triag101,hansr102,4,2,6,3,0,3,3,0,15 | |
BAL196106080,BAL,MIN,BAL1961,MIN1961,fishj101,killh102,allib103,8,1,2,3,0,3,0,0,8 | |
BAL196106300,BAL,DET,DET1961,BAL1961,bunnj101,triag101,hansr102,6,1,4,3,0,3,0,0,10 | |
BAL196106300,BAL,DET,BAL1961,DET1961,wilhh101,cashn101,boros101,9,0,1,3,0,3,3,0,10 | |
BAL196107010,BAL,DET,BAL1961,DET1961,stocw101,maxwc101,aguih101,8,2,2,0,3,3,3,0,11 | |
BAL196107010,BAL,DET,BAL1961,DET1961,hyded101,cashn101,boros101,11,1,1,3,0,3,0,0,7 |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bbrefid | |
bagweje01 | |
bondsba01 | |
clemero02 | |
hoffmtr01 | |
kentje01 | |
martied01 | |
mcgrifr01 | |
mussimi01 | |
raineti01 |
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 5 columns, instead of 3 in line 9.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gender Rank,Occupation,Gender,Individuals,Average Taxable Income $ | |
795,Abattoir process worker; Meat process worker; Meatworker – meatworker’s labourer,Female,5961,36359 | |
881,Abattoir process worker; Meat process worker; Meatworker – meatworker’s labourer,Male,17241,40954 | |
699,Aboriginal and Torres Strait Islander education worker,Female,1386,40926 | |
828,Aboriginal and Torres Strait Islander education worker,Male,636,44077 | |
641,Aboriginal and Torres Strait Islander health liaison officer; Aboriginal and Torres Strait Islander health worker,Female,1878,43545 | |
760,Aboriginal and Torres Strait Islander health liaison officer; Aboriginal and Torres Strait Islander health worker,Male,903,47833 | |
200,Accountant; Bank accountant; Chartered accountant; Financial analyst,Female,78380,71552 | |
136,Accountant; Bank accountant; Chartered accountant; Financial analyst,Male,77112,105107 | |
157,Accounting practice manager; Architectural practice manager; Legal practice manager; Manager – other practice; Veterinary practice manager,Female |