You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -133,7 +133,9 @@ use `statsapi.get()` to call the sports_players endpoint for the 2008 World Seri
133
133
lookup Chase Utley's person id from the results, and pass it into `statsapi.player_stats()`
134
134
using `type='hitting'` and `group='career'`
135
135
136
+
```
136
137
print( statsapi.player_stats(next(x['id'] for x in statsapi.get('sports_players',{'season':2008,'gameType':'W'})['people'] if x['fullName']=='Chase Utley'), 'hitting', 'career') )
138
+
```
137
139
138
140
### Print a list of scoring plays from the 4/28/2019 Marlins @ Phillies game
0 commit comments