pybaseball
pybaseball copied to clipboard
Pull current and historical baseball statistics using Python (Statcast, Baseball Reference, FanGraphs)
Hello, I'm new to Python and pybaseball, and I've encountered an issue when trying to use the batting_stats_range() function to retrieve batting stats. Here is the code I'm using: from...
Currently, if a player plays for multiple teams in a season, for instance Juan Soto played for both Washington and San Diego in 2022, their team is '---,' instead of...
## The Issue In particular, the function signature has the `player_id` as an optional argument -- [see here](https://github.com/jldbc/pybaseball/blob/fd6c4e4bb6135604829e46d686f240ee2bd07194/pybaseball/statcast_batter.py#L11) In the actual usage of this function, not supplying a `player_id` raises...
Hi. Are there plans to incorporate minor league statcast function since now they're available on baseball savant? Thanks!
In basreball-reference when you look up a player you'll get stats for all years including in the minors - is there a way to get that data using pybaseball?
docs didn't match code
In response to issue #50 this function scrapes teamrankings.com to get 2023 quality start stats across the league. Specifically this new function will return a data frame with all pitchers...
I recently started using this library which has greatly aided my work. I noticed a common pattern where I wanted to gather a players year over year stats, such as...
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....