nflgame: Jaguars player missing team name
xpost: https://github.com/BurntSushi/nfldb/issues/154
import nfldb
db = nfldb.connect()
q = nfldb.Query(db)
q.game(season_year=2015, season_type='Regular', team='JAC', week=1)
q.play(play_id=3823)
for play in q.as_plays():
print play
for pp in play.play_players:
print '\t', pp.team, pp.player, pp
print '-'*79
import nflgame
games = nflgame.games(year=2015, week=1, home='JAC', away='JAC')
plays = nflgame.combine_plays(games)
for play in plays.filter(playid='3823'):
print play
for p in play.players:
print '\t', p.team, p.player, p.formatted_stats()
(JAC, OWN 20, Q4, 1 and 10) (2:41) (Shotgun) B.Bortles pass short middle intended for C.Harbor INTERCEPTED by T.Davis (M.Addison) at JAC 20. T.Davis to JAC 19 for 1 yard (T.Yeldon).
JAC Blake Bortles (UNK, UNK) {'passing_int': 1, 'passing_att': 1, 'passing_incmp': 1}
CAR Thomas Davis (CAR, OLB) {'defense_pass_def': 1, 'defense_int': 1, 'defense_int_yds': 1}
JAC T.J. Yeldon (UNK, UNK) {'defense_tkl': 1}
JAC Clay Harbor (NE, TE) {'receiving_tar': 1}
CAR Mario Addison (CAR, DE) {'defense_pass_def': 1}
-------------------------------------------------------------------------------
(JAC, JAC 20, Q4, 1 and 10) (2:41) (Shotgun) B.Bortles pass short middle intended for C.Harbor INTERCEPTED by T.Davis (M.Addison) at JAC 20. T.Davis to JAC 19 for 1 yard (T.Yeldon).
CAR Mario Addison (DE, CAR) defense_pass_def: 1
JAC Clay Harbor (TE, NE) receiving_tar: 1
JAC T.J. Yeldon (, ) defense_tkl: 1
CAR Thomas Davis (OLB, CAR) defense_int: 1, defense_int_yds: 1, defense_pass_def: 1
JAC Blake Bortles (, ) passing_int: 1, passing_att: 1, passing_incmp: 1, passing_incmp_air_yds: 0
About this issue
- Original URL
- State: open
- Created 8 years ago
- Comments: 15 (4 by maintainers)
@weixiyen Yes, I’ll sort all of the critical issues out before long. I suspect preseason will be my forcing function.
If you are having trouble getting this to update the db (and perhaps have a draft date looming), you need to force it to update the rosters by setting the
player-intervalto 0.