Skip to content

Instantly share code, notes, and snippets.

@ochawkeye
Last active October 28, 2015 20:46
Show Gist options
  • Save ochawkeye/d24df22c6b3cc93419d6 to your computer and use it in GitHub Desktop.
Save ochawkeye/d24df22c6b3cc93419d6 to your computer and use it in GitHub Desktop.
import nfldb
db = nfldb.connect()
q = nfldb.Query(db)
p, y, w = nfldb.current(db)
q.game(season_type=p, season_year=y, week=w)
print p, y, w
for pp in q.sort('passing_yds').limit(10).as_aggregate():
print pp.player, pp.passing_yds
@ochawkeye
Copy link
Author

Regular 2015 7
Tom Brady (NE, QB) 355
Philip Rivers (SD, QB) 336
Andrew Luck (IND, QB) 333
Kirk Cousins (WAS, QB) 317
Teddy Bridgewater (MIN, QB) 316
EJ Manuel (BUF, QB) 298
Jameis Winston (TB, QB) 297
Ryan Fitzpatrick (NYJ, QB) 295
Derek Carr (OAK, QB) 289
Ryan Tannehill (MIA, QB) 282

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment