Skip to content

Instantly share code, notes, and snippets.

@ochawkeye
Last active August 29, 2015 14:06
Show Gist options
  • Save ochawkeye/0a368ff36cbb38912ef4 to your computer and use it in GitHub Desktop.
Save ochawkeye/0a368ff36cbb38912ef4 to your computer and use it in GitHub Desktop.
Where are those names coming from?
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