{"action":"created","issue":{"url":"https://api.github.com/repos/BurntSushi/nflgame/issues/272","repository_url":"https://api.github.com/repos/BurntSushi/nflgame","labels_url":"https://api.github.com/repos/BurntSushi/nflgame/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/BurntSushi/nflgame/issues/272/comments","events_url":"https://api.github.com/repos/BurntSushi/nflgame/issues/272/events","html_url":"https://github.com/BurntSushi/nflgame/issues/272","id":194671356,"number":272,"title":"Inconsistent stats per week using combine_max_stats?","user":{"login":"lchu122","id":22478782,"avatar_url":"https://avatars.githubusercontent.com/u/22478782?v=3","gravatar_id":"","url":"https://api.github.com/users/lchu122","html_url":"https://github.com/lchu122","followers_url":"https://api.github.com/users/lchu122/followers","following_url":"https://api.github.com/users/lchu122/following{/other_user}","gists_url":"https://api.github.com/users/lchu122/gists{/gist_id}","starred_url":"https://api.github.com/users/lchu122/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lchu122/subscriptions","organizations_url":"https://api.github.com/users/lchu122/orgs","repos_url":"https://api.github.com/users/lchu122/repos","events_url":"https://api.github.com/users/lchu122/events{/privacy}","received_events_url":"https://api.github.com/users/lchu122/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-09T19:01:03Z","updated_at":"2016-12-09T20:40:00Z","closed_at":null,"body":"I was working with combine_max_stats to get weekly stat lines and I wanted to gather a dataframe of players across multiple weeks. However, I encountered mismatches of number of values vs number of columns. Testing the length I found out the number of stats vary from each week.  For example, after taking a set difference of the weeks 1-3 for 2009:\r\n```\r\n1 and 2: set(['defense_misc_yds', 'fumbles_rec_tds', 'defense_puntblk', 'punting_blk', 'defense_misc_tds'])\r\n2 and 3: set(['defense_safe', 'defense_xpblk', 'rushing_twoptmissed', 'defense_frec_tds'])\r\n1 and 3: set(['fumbles_rec_tds', 'defense_safe', 'rushing_twoptmissed', 'defense_frec_tds'])\r\n```\r\nAnyone encounter this issue? What was your workaround?"},"comment":{"url":"https://api.github.com/repos/BurntSushi/nflgame/issues/comments/266117459","html_url":"https://github.com/BurntSushi/nflgame/issues/272#issuecomment-266117459","issue_url":"https://api.github.com/repos/BurntSushi/nflgame/issues/272","id":266117459,"user":{"login":"ochawkeye","id":2996205,"avatar_url":"https://avatars.githubusercontent.com/u/2996205?v=3","gravatar_id":"","url":"https://api.github.com/users/ochawkeye","html_url":"https://github.com/ochawkeye","followers_url":"https://api.github.com/users/ochawkeye/followers","following_url":"https://api.github.com/users/ochawkeye/following{/other_user}","gists_url":"https://api.github.com/users/ochawkeye/gists{/gist_id}","starred_url":"https://api.github.com/users/ochawkeye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ochawkeye/subscriptions","organizations_url":"https://api.github.com/users/ochawkeye/orgs","repos_url":"https://api.github.com/users/ochawkeye/repos","events_url":"https://api.github.com/users/ochawkeye/events{/privacy}","received_events_url":"https://api.github.com/users/ochawkeye/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T20:40:00Z","updated_at":"2016-12-09T20:40:00Z","body":"Stat categories with a value of 0 aren't included in your stats, so that's why you see a mismatch.  (ie. If there were no extra points blocked in a week, then the category `defense_xpblk` isn't going to be included in that weeks stats)\r\n\r\nI _think_ there is an `allfields=True` flag you can use to get all stat categories included, but that might be a csv thing."}}
{"actor":{"display_login":"ochawkeye"}}