jldbc / pybaseball

Pull current and historical baseball statistics using Python (Statcast, Baseball Reference, FanGraphs)
MIT License
1.18k stars 322 forks source link

Single Game Stats #352

Open guilletmax opened 1 year ago

guilletmax commented 1 year ago

Issue: https://github.com/jldbc/pybaseball/issues/52

Implemented using the MLB stats API. Retrieves a box score that is outputted as a pandas dataframe for a given game. Input is a unique MLB game_pk value.

Example code:

from pybaseball import box_score box_score(565997)