{"id":70,"date":"2017-09-21T17:34:34","date_gmt":"2017-09-21T17:34:34","guid":{"rendered":"http:\/\/www.ootp.cavebutter.net\/blog\/?p=70"},"modified":"2017-09-21T17:34:34","modified_gmt":"2017-09-21T17:34:34","slug":"tables-8-player-career-pitching-stats","status":"publish","type":"post","link":"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/70","title":{"rendered":"<font color='#1e73be'>Tables 8: Player Career Pitching Stats<\/font>"},"content":{"rendered":"<p>Same breakdown here as the previous career stats tables, with indexes on player_id, year, split_id, stint, and team_id. \u00a0Similar to the batting stats table, we have a couple calculated statistics here: WPA (though I am not sure how this works for pitchers&#8230;is it per AB?), and WAR. \u00a0We also have a column that I haven&#8217;t been able to identify: &#8216;li&#8217;.<\/p>\n<p>I will come back to this in another section, but this is the table we&#8217;ll reference when aggregating data for Run Environments as we don&#8217;t have a reliable way to group league history pitching data by subleague or of calculating outs. \u00a0On this table, outs are conveniently recorded in the &#8216;outs&#8217; column.<\/p>\n<pre class=\"line-numbers\"><code class=\"language-sql\">CREATE TABLE `players_career_pitching_stats` (\r\n  `pcps_id` int(11) NOT NULL AUTO_INCREMENT,    \r\n  `player_id` int(11) NOT NULL,\r\n  `year` smallint(6) NOT NULL,\r\n  `team_id` int(11) NOT NULL,\r\n  `game_id` int(11) DEFAULT NULL,\r\n  `league_id` int(11) DEFAULT NULL,\r\n  `level_id` smallint(6) DEFAULT NULL,\r\n  `split_id` smallint(6) NOT NULL,\r\n  `ip` smallint(6) DEFAULT NULL,\r\n  `ab` smallint(6) DEFAULT NULL,\r\n  `tb` smallint(6) DEFAULT NULL,\r\n  `ha` smallint(6) DEFAULT NULL,\r\n  `k` smallint(6) DEFAULT NULL,\r\n  `bf` smallint(6) DEFAULT NULL,\r\n  `rs` smallint(6) DEFAULT NULL,\r\n  `bb` smallint(6) DEFAULT NULL,\r\n  `r` smallint(6) DEFAULT NULL,\r\n  `er` smallint(6) DEFAULT NULL,\r\n  `gb` smallint(6) DEFAULT NULL,\r\n  `fb` smallint(6) DEFAULT NULL,\r\n  `pi` smallint(6) DEFAULT NULL,\r\n  `ipf` smallint(6) DEFAULT NULL,\r\n  `g` smallint(6) DEFAULT NULL,\r\n  `gs` smallint(6) DEFAULT NULL,\r\n  `w` smallint(6) DEFAULT NULL,\r\n  `l` smallint(6) DEFAULT NULL,\r\n  `s` smallint(6) DEFAULT NULL,\r\n  `sa` smallint(6) DEFAULT NULL,\r\n  `da` smallint(6) DEFAULT NULL,\r\n  `sh` smallint(6) DEFAULT NULL,\r\n  `sf` smallint(6) DEFAULT NULL,\r\n  `ta` smallint(6) DEFAULT NULL,\r\n  `hra` smallint(6) DEFAULT NULL,\r\n  `bk` smallint(6) DEFAULT NULL,\r\n  `ci` smallint(6) DEFAULT NULL,\r\n  `iw` smallint(6) DEFAULT NULL,\r\n  `wp` smallint(6) DEFAULT NULL,\r\n  `hp` smallint(6) DEFAULT NULL,\r\n  `gf` smallint(6) DEFAULT NULL,\r\n  `dp` smallint(6) DEFAULT NULL,\r\n  `qs` smallint(6) DEFAULT NULL,\r\n  `svo` smallint(6) DEFAULT NULL,\r\n  `bs` smallint(6) DEFAULT NULL,\r\n  `ra` smallint(6) DEFAULT NULL,\r\n  `cg` smallint(6) DEFAULT NULL,\r\n  `sho` smallint(6) DEFAULT NULL,\r\n  `sb` smallint(6) DEFAULT NULL,\r\n  `cs` smallint(6) DEFAULT NULL,\r\n  `hld` smallint(6) DEFAULT NULL,\r\n  `ir` double DEFAULT NULL,\r\n  `irs` double DEFAULT NULL,\r\n  `wpa` double DEFAULT NULL,\r\n  `li` double DEFAULT NULL,\r\n  `stint` smallint(6) NOT NULL,\r\n  `outs` smallint(6) DEFAULT NULL,\r\n  `war` double DEFAULT NULL,\r\n  PRIMARY KEY (`pcps_id`),\r\n  INDEX `pcps_ix1` (`league_id`),\r\n  INDEX `pcps_ix2` (year),\r\n  INDEX `pcps_ix3` (`player_id`),\r\n  INDEX `pcps_ix4` (`team_id`),\r\n  INDEX `pcps_ix5` (`split_id`)  \r\n) ENGINE=InnoDB DEFAULT CHARSET=latin1;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Same breakdown here as the previous career stats tables, with indexes on player_id, year, split_id, stint, and team_id. \u00a0Similar to the batting stats table, we have a couple calculated statistics here: WPA (though I am not sure how this works for pitchers&#8230;is it per AB?), and WAR. \u00a0We also have a column that I haven&#8217;t&hellip; <a class=\"more-link\" href=\"http:\/\/www.ootp.cavebutter.net\/blog\/archives\/70\">Continue reading <span class=\"screen-reader-text\">Tables 8: Player Career Pitching Stats<\/span> <span class=\"meta-nav\" aria-hidden=\"true\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[10],"tags":[7,4,15,22,6],"class_list":["post-70","post","type-post","status-publish","format-standard","hentry","category-tables","tag-mysql","tag-ootp","tag-pitching","tag-players","tag-tables"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9cxb5-18","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"http:\/\/www.ootp.cavebutter.net\/blog\/wp-json\/wp\/v2\/posts\/70","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ootp.cavebutter.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ootp.cavebutter.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ootp.cavebutter.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ootp.cavebutter.net\/blog\/wp-json\/wp\/v2\/comments?post=70"}],"version-history":[{"count":1,"href":"http:\/\/www.ootp.cavebutter.net\/blog\/wp-json\/wp\/v2\/posts\/70\/revisions"}],"predecessor-version":[{"id":71,"href":"http:\/\/www.ootp.cavebutter.net\/blog\/wp-json\/wp\/v2\/posts\/70\/revisions\/71"}],"wp:attachment":[{"href":"http:\/\/www.ootp.cavebutter.net\/blog\/wp-json\/wp\/v2\/media?parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ootp.cavebutter.net\/blog\/wp-json\/wp\/v2\/categories?post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ootp.cavebutter.net\/blog\/wp-json\/wp\/v2\/tags?post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}