Last active
August 29, 2015 14:06
-
-
Save ochawkeye/0a368ff36cbb38912ef4 to your computer and use it in GitHub Desktop.
Where are those names coming from?
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 nflgame | |
games = nflgame.games(2014, week=1, kind='REG') | |
players = nflgame.combine_game_stats(games) | |
meta = nflgame.players | |
for x in players: | |
if str(x) == 'M.Ryan': | |
print x.playerid, meta[x.playerid], meta[x.playerid].gsis_name, x | |
if '.' not in str(x): | |
print x.playerid, meta[x.playerid], meta[x.playerid].gsis_name, x | |
''' | |
00-0026143 Matt Ryan (QB, ATL) M.Ryan M.Ryan | |
00-0027944 Julio Jones (WR, ATL) J.Jones JulioJones | |
00-0031118 Philly Brown (WR, CAR) C.Brown Philly | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment