Created
March 22, 2012 15:33
-
-
Save neilkod/2159054 to your computer and use it in GitHub Desktop.
baseball stats that are 'bad'
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
api endpoint http://developer.cbssports.com/documentation/api/files/stats/categories | |
Out of all of the statistics available through the baseball api, these are the statistics that are considered 'bad': | |
>>> [(x['name'],x['formula'],x['abbr']) for x in data['body']['stats_categories'] if x['is_bad']!=0] | |
[(u'Walks per Nine', u'BBI * 9 / INN', u'BBd9'), (u'Singles Allowed', '', u'1BA'), (u'Doubles Allowed', '', u'2BA'), (u'Hit Batsmen', '', u'HB'), (u'Strikeouts (Batter)', '', u'KO'), (u'Men on Base/ 9 Innings', u'(HA + BBI + HB) * 9 / INN', u'Rd9'), (u'Wild Pitches', '', u'WP'), (u'Runs Allowed', '', u'RA'), (u'Batting Average Against', u'HA / ABA', u'BAA'), (u'Home Runs Allowed', '', u'HRA'), (u'Balks', '', u'B'), (u'Relief Losses', '', u'RL'), (u'Inherited Runners Scored', '', u'IRS'), (u'Intentional Walks', '', u'IBBI'), (u'Total Bases Allowed', '', u'TBA'), (u'Earned Run Average', u'ER * 9 / INN', u'ERA'), (u'Caught Stealing', '', u'CS'), (u'Hits per Nine', u'HA * 9 / INN', u'Hd9'), (u'Ground Into Double Plays', '', u'GDP'), (u'Walks + Hits / Inning', u'(BBI + HA) / INN', u'WHIP'), (u'Errors', '', u'E'), (u'Left On Base', '', u'LOB'), (u'On Base Pct Against', u'(HA + BBI + HB) / PA', u'OBA'), (u'Losses', '', u'L'), (u'Walks Issued (Pitchers)', '', u'BBI'), (u'Triples Allowed', '', u'3BA'), (u'Hits per Inning', u'HA / INN', u'HIP'), (u'Blown Saves', '', u'BS'), (u'Hits Allowed', '', u'HA'), (u'Blown Save Losses', '', u'BSL'), (u'Earned Runs', '', u'ER'), (u'Stolen Bases Allowed', '', u'SBA')] | |
>>> | |
all categories: | |
{"body":{"stats_categories":[{"group":"Pitching","abbr":"S","formula":"","live":"Yes","avg":" 96","name":"Saves","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"NHL","formula":"","live":"Yes","avg":"Less than 5","name":"No-Hitter Loss","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"CSC","formula":"","live":"No","avg":"Less than 5","name":"Caught Stealing by Catcher","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"PG","formula":"","live":"Yes","avg":" 16","name":"Perfect Games","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"GP3B","formula":"","live":"No","avg":"Less than 5","name":"Games Played Third Base","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"AO","formula":"","live":"Yes","avg":"Less than 5","name":"Air Outs","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"BBd9","formula":"BBI * 9 / INN","live":"Yes","avg":"Less than 5","name":"Walks per Nine","is_bad":"1","scoring":"1"},{"group":"Batting","abbr":"GP2B","formula":"","live":"No","avg":"Less than 5","name":"Games Played Second Base","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"1BA","formula":"","live":"Yes","avg":"Less than 5","name":"Singles Allowed","is_bad":"1","scoring":"1"},{"group":"Pitching","abbr":"MERA","formula":"800 * (4.5 - ERA)","live":"Yes","avg":"Less than 5","name":"Modified ERA","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"SH","formula":"","live":"Yes","avg":" 6","name":"Sacrifice Hits","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"ABRISP","formula":"","live":"Yes","avg":"Less than 5","name":"AtBat Runners in Sco. Pos.","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"OUTS","formula":"","live":"Yes","avg":"Less than 5","name":"Outs","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"GdAO","formula":"GO / AO","live":"No","avg":"Less than 5","name":"Ground Outs/Air Outs","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"GO","formula":"","live":"Yes","avg":"Less than 5","name":"Ground Outs","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"ABA","formula":"","live":"No","avg":"Less than 5","name":"At Bats Against","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"2BA","formula":"","live":"Yes","avg":"Less than 5","name":"Doubles Allowed","is_bad":"1","scoring":"1"},{"group":"Batting","abbr":"FC","formula":"","live":"No","avg":"Less than 5","name":"Fielding Chances","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"RW","formula":"","live":"No","avg":"Less than 5","name":"Relief Wins","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"HB","formula":"","live":"Yes","avg":" 11","name":"Hit Batsmen","is_bad":"1","scoring":"1"},{"group":"Batting","abbr":"BP","formula":"TB + SB","live":"Yes","avg":"Less than 5","name":"Bases Produced","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"SOP","formula":"","live":"No","avg":"Less than 5","name":"Save Opportunities","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"Kd9","formula":"K * 9 / INN","live":"Yes","avg":"Less than 5","name":"Strikeouts per Nine","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"DPT","formula":"","live":"No","avg":"Less than 5","name":"Double Plays Turned","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"RBI-HR","formula":"RBI - HR","live":"Yes","avg":"Less than 5","name":"RBI Minus Home Runs","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"PPos","formula":"","live":"No","avg":"Less than 5","name":"Primary Position","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"KO","formula":"","live":"Yes","avg":" 35","name":"Strikeouts (Batter)","is_bad":"1","scoring":"1"},{"group":null,"abbr":"TM","formula":"","live":"No","avg":"Less than 5","name":"Pro Team","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"Rd9","formula":"(HA + BBI + HB) * 9 / INN","live":"No","avg":"Less than 5","name":"Men on Base/ 9 Innings","is_bad":"1","scoring":"1"},{"group":"Batting","abbr":"GPLF","formula":"","live":"No","avg":"Less than 5","name":"Games Played Left Field","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"BA","formula":"H / AB","live":"Yes","avg":" 51","name":"Batting Average","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"GST","formula":"","live":"No","avg":"Less than 5","name":"Games Started (Batter)","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"3B","formula":"","live":"Yes","avg":" 45","name":"Triples","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"SB-CS","formula":"SB - CS","live":"Yes","avg":"Less than 5","name":"Stolen Bases - Caught Stealing","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"CYC","formula":"","live":"Yes","avg":" 18","name":"Hitting for the Cycle","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"WP","formula":"","live":"Yes","avg":" 5","name":"Wild Pitches","is_bad":"1","scoring":"1"},{"group":"Pitching","abbr":"PKO","formula":"","live":"Yes","avg":" 7","name":"Pick Offs","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"INNdGS","formula":"","live":"No","avg":"Less than 5","name":"Innings per Start","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"RBI","formula":"","live":"Yes","avg":" 99","name":"Runs Batted In","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"TB","formula":"","live":"Yes","avg":"Less than 5","name":"Total Bases","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"W-L","formula":"W - L","live":"Yes","avg":"Less than 5","name":"Wins Minus Losses","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"BFP","formula":"","live":"Yes","avg":"Less than 5","name":"Batters Facing Pitcher","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"RA","formula":"","live":"Yes","avg":"Less than 5","name":"Runs Allowed","is_bad":"1","scoring":"1"},{"group":"Pitching","abbr":"CGL","formula":"","live":"Yes","avg":"Less than 5","name":"Complete Game Loss","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"WPCT","formula":"W / (W + L)","live":"Yes","avg":"Less than 5","name":"Winning Pct","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"BAA","formula":"HA / ABA","live":"No","avg":"Less than 5","name":"Batting Average Against","is_bad":"1","scoring":"1"},{"group":"Pitching","abbr":"HRA","formula":"","live":"Yes","avg":" 5","name":"Home Runs Allowed","is_bad":"1","scoring":"1"},{"group":"Pitching","abbr":"INN","formula":"OUTS / 3","live":"Yes","avg":" 45","name":"Innings","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"GS","formula":"","live":"Yes","avg":"Less than 5","name":"Games Started (Pitcher)","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"OFAST","formula":"","live":"No","avg":"Less than 5","name":"OF Assists","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"B","formula":"","live":"Yes","avg":" 5","name":"Balks","is_bad":"1","scoring":"1"},{"group":"Batting","abbr":"H","formula":"","live":"Yes","avg":" 6","name":"Hits","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"CI","formula":"","live":"Yes","avg":"Less than 5","name":"Catcher Interference","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"RL","formula":"","live":"No","avg":"Less than 5","name":"Relief Losses","is_bad":"1","scoring":"1"},{"group":"Batting","abbr":"PBC","formula":"","live":"No","avg":"Less than 5","name":"Passed Balls by Catcher","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"HD","formula":"","live":"Yes","avg":" 11","name":"Holds","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"IRS","formula":"","live":"No","avg":"Less than 5","name":"Inherited Runners Scored","is_bad":"1","scoring":"1"},{"group":"Pitching","abbr":"IBBI","formula":"","live":"Yes","avg":"Less than 5","name":"Intentional Walks","is_bad":"1","scoring":"1"},{"group":"Batting","abbr":"PO","formula":"","live":"No","avg":"Less than 5","name":"Put Outs","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"GPSS","formula":"","live":"No","avg":"Less than 5","name":"Games Played Short Stop","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"K-BB","formula":"K - BBI","live":"Yes","avg":"Less than 5","name":"Strikeouts Minus Walks","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"FPCT","formula":"(PO + AST) / FC","live":"No","avg":"Less than 5","name":"Fielding Pct","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"TBA","formula":"","live":"No","avg":"Less than 5","name":"Total Bases Allowed","is_bad":"1","scoring":"1"},{"group":"Pitching","abbr":"ERA","formula":"ER * 9 / INN","live":"Yes","avg":" 55","name":"Earned Run Average","is_bad":"1","scoring":"1"},{"group":"Batting","abbr":"CS","formula":"","live":"Yes","avg":" 33","name":"Caught Stealing","is_bad":"1","scoring":"1"},{"group":"Batting","abbr":"GPC","formula":"","live":"No","avg":"Less than 5","name":"Games Played Catcher","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"Hd9","formula":"HA * 9 / INN","live":"Yes","avg":"Less than 5","name":"Hits per Nine","is_bad":"1","scoring":"1"},{"group":"Batting","abbr":"GDP","formula":"","live":"Yes","avg":" 9","name":"Ground Into Double Plays","is_bad":"1","scoring":"1"},{"group":"Batting","abbr":"R","formula":"","live":"Yes","avg":" 86","name":"Runs","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"WHIP","formula":"(BBI + HA) / INN","live":"Yes","avg":" 52","name":"Walks + Hits / Inning","is_bad":"1","scoring":"1"},{"group":"Batting","abbr":"SB","formula":"","live":"Yes","avg":" 97","name":"Stolen Bases","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"BB","formula":"","live":"Yes","avg":" 46","name":"Walks (Batters)","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"K","formula":"","live":"Yes","avg":" 85","name":"Strikeouts (Pitcher)","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"E","formula":"","live":"No","avg":" 11","name":"Errors","is_bad":"1","scoring":"1"},{"group":"Batting","abbr":"GPOF","formula":"","live":"No","avg":"Less than 5","name":"Games Played Outfield","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"GPRF","formula":"","live":"No","avg":"Less than 5","name":"Games Played Right Field","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"RPA","formula":"(R + RBI - HR) / AB","live":"Yes","avg":"Less than 5","name":"Runs Produced Average","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"PA","formula":"","live":"No","avg":"Less than 5","name":"Plate Appearances","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"RP","formula":"R + RBI - HR","live":"Yes","avg":"Less than 5","name":"Runs Produced","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"GPDH","formula":"","live":"No","avg":"Less than 5","name":"Games Played Designated Hitter","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"SDT","formula":"1B + 2B + 3B","live":"Yes","avg":"Less than 5","name":"Singles + Doubles + Triples","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"GF","formula":"","live":"Yes","avg":"Less than 5","name":"Games Finished","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"NH","formula":"","live":"Yes","avg":" 22","name":"No-Hitters","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"TPT","formula":"","live":"No","avg":"Less than 5","name":"Triple Plays Turned","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"COM","formula":"BB + SB - KO","live":"Yes","avg":"Less than 5","name":"Combo","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"SBPCT","formula":"100 * SB / (SB + CS)","live":"Yes","avg":"Less than 5","name":"Stolen Base Pct","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"HR","formula":"","live":"Yes","avg":" 98","name":"Home Runs","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"PC","formula":"","live":"Yes","avg":"Less than 5","name":"Pitch Count","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"SF","formula":"","live":"Yes","avg":" 6","name":"Sacrifice Flies","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"LOB","formula":"","live":"Yes","avg":"Less than 5","name":"Left On Base","is_bad":"1","scoring":"1"},{"group":"Batting","abbr":"AB","formula":"","live":"Yes","avg":"Less than 5","name":"At Bats","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"GPCI","formula":"","live":"No","avg":"Less than 5","name":"Games Played Corner Infield","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"RdAB","formula":"R / AB","live":"Yes","avg":"Less than 5","name":"Runs per At Bat","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"OBA","formula":"(HA + BBI + HB) / PA","live":"No","avg":"Less than 5","name":"On Base Pct Against","is_bad":"1","scoring":"1"},{"group":"Pitching","abbr":"CG","formula":"","live":"Yes","avg":" 29","name":"Complete Games","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"GP1B","formula":"","live":"No","avg":"Less than 5","name":"Games Played First Base","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"L","formula":"","live":"Yes","avg":" 39","name":"Losses","is_bad":"1","scoring":"1"},{"group":"Pitching","abbr":"NW","formula":"2 * W - L","live":"Yes","avg":"Less than 5","name":"Net Wins","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"XBH","formula":"2B + 3B + HR","live":"Yes","avg":"Less than 5","name":"Extra Base Hits","is_bad":0,"scoring":"1"},{"avg":"Less than 5","name":"Production Pct","is_bad":0,"abbr":"PP","group":"Batting","formula":"((H + BB + HP) / (AB + BB + HP + SF)) + (TB / AB)","live":"Yes","applies_to":"OBP + SLG","scoring":"1"},{"group":"Pitching","abbr":"BBI","formula":"","live":"Yes","avg":" 34","name":"Walks Issued (Pitchers)","is_bad":"1","scoring":"1"},{"group":"Batting","abbr":"BPA","formula":"AB + BB + HP","live":"No","avg":"Less than 5","name":"Plate Appearances (Batter)","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"IB","formula":"","live":"Yes","avg":" 5","name":"Intentional Walks","is_bad":0,"scoring":"1"},{"avg":"Less than 5","name":"Total Pct Average","is_bad":0,"abbr":"TPA","group":"Batting","formula":"BA + ((H + BB + HP) / (AB + BB + HP + SF)) + (TB / AB)","live":"Yes","applies_to":"BA + OBP + SLG","scoring":"1"},{"group":"Pitching","abbr":"3BA","formula":"","live":"Yes","avg":"Less than 5","name":"Triples Allowed","is_bad":"1","scoring":"1"},{"group":"Pitching","abbr":"APP","formula":"","live":"Yes","avg":"Less than 5","name":"Appearances","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"HIP","formula":"HA / INN","live":"Yes","avg":"Less than 5","name":"Hits per Inning","is_bad":"1","scoring":"1"},{"group":"Pitching","abbr":"QS","formula":"","live":"Yes","avg":" 13","name":"Quality Starts","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"GPMI","formula":"","live":"No","avg":"Less than 5","name":"Games Played Middle Infield","is_bad":0,"scoring":"1"},{"group":null,"abbr":"MLBST","formula":"","live":"No","avg":"Less than 5","name":"Major League Status","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"OBP","formula":"(H + BB + HP) / (AB + BB + HP + SF)","live":"Yes","avg":" 7","name":"On Base Pct","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"W","formula":"","live":"Yes","avg":" 95","name":"Wins","is_bad":0,"scoring":"1"},{"group":"Pitching","abbr":"BS","formula":"","live":"Yes","avg":" 36","name":"Blown Saves","is_bad":"1","scoring":"1"},{"group":"Pitching","abbr":"HA","formula":"","live":"Yes","avg":" 25","name":"Hits Allowed","is_bad":"1","scoring":"1"},{"group":"Pitching","abbr":"BSL","formula":"","live":"Yes","avg":"Less than 5","name":"Blown Save Losses","is_bad":"1","scoring":"1"},{"group":"Batting","abbr":"G","formula":"","live":"Yes","avg":"Less than 5","name":"Games","is_bad":0,"scoring":"1"},{"avg":"Less than 5","name":"On Base plus Slugging Pct","is_bad":0,"abbr":"OPS","group":"Batting","formula":"((H + BB + HP) / (AB + BB + HP + SF)) + (TB / AB)","live":"Yes","applies_to":"OBP + SLG","scoring":"1"},{"group":"Pitching","abbr":"ER","formula":"","live":"Yes","avg":" 40","name":"Earned Runs","is_bad":"1","scoring":"1"},{"group":"Batting","abbr":"SLG","formula":"TB / AB","live":"Yes","avg":"Less than 5","name":"Slugging Pct","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"DT","formula":"2B + 3B","live":"Yes","avg":"Less than 5","name":"Doubles Plus Triples","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"1B","formula":"","live":"Yes","avg":" 43","name":"Singles","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"PKOF","formula":"","live":"No","avg":"Less than 5","name":"Pick Offs by Fielder","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"HRISP","formula":"","live":"No","avg":"Less than 5","name":"Hits Runners in Sco. Pos.","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"AST","formula":"","live":"No","avg":"Less than 5","name":"Assists","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"2B","formula":"","live":"Yes","avg":" 45","name":"Doubles","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"GPCF","formula":"","live":"No","avg":"Less than 5","name":"Games Played Center Field","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"SBA","formula":"","live":"No","avg":"Less than 5","name":"Stolen Bases Allowed","is_bad":"1","scoring":"1"},{"group":"Pitching","abbr":"SO","formula":"","live":"Yes","avg":" 38","name":"Shutouts","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"HP","formula":"","live":"Yes","avg":" 32","name":"Hit by Pitch","is_bad":0,"scoring":"1"},{"group":"Batting","abbr":"GSHR","formula":"","live":"Yes","avg":" 11","name":"Grand Slam Home Runs","is_bad":0,"scoring":"1"}]},"uriAlias":"/stats/categories","statusMessage":"OK","uri":"/stats/categories","statusCode":200} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment