pybaseball icon indicating copy to clipboard operation
pybaseball copied to clipboard

How to get game_id and starting lineups?

Open dwalton76 opened this issue 3 years ago • 1 comments

I can use schedule_and_record to download some basic info about games but how do I get the game-id for those games so that I can then use statcast_single_game?

Also how do I get the starting lineups for a game?

Thanks

dwalton76 avatar Jan 24 '22 14:01 dwalton76

The function retrosheet.season_game_logs should give you lineup information. Alternatively, you could do some light post-processing of the output of statcast to determine it as well.

I'm not quite sure about your first question, might be able to combine info from gamedate and game_num from season-game_logs.

ryan112358 avatar Feb 02 '22 23:02 ryan112358