Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
panzarino committed Jan 17, 2018
1 parent a30d996 commit 255514b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ import mlbgame

game = mlbgame.day(2015, 11, 1, home='Mets')[0]
stats = mlbgame.player_stats(game.game_id)
for player in stats['home_batting']:
for player in stats.home_batting:
print(player)
```

Expand Down
4 changes: 2 additions & 2 deletions mlbgame/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@
#!python
from __future__ import print_function
import mlbgame
game = mlbgame.day(2015, 11, 1, home='Mets')[0]
stats = mlbgame.player_stats(game.game_id)
for player in stats['home_batting']:
for player in stats.home_batting:
print(player)
And the output is:
Expand Down

0 comments on commit 255514b

Please sign in to comment.