Last active
October 28, 2015 20:46
-
-
Save ochawkeye/d24df22c6b3cc93419d6 to your computer and use it in GitHub Desktop.
This file contains 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
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 |
Author
ochawkeye
commented
Oct 28, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment