pybaseball icon indicating copy to clipboard operation
pybaseball copied to clipboard

Pull current and historical baseball statistics using Python (Statcast, Baseball Reference, FanGraphs)

Results 158 pybaseball issues
Sort by recently updated
recently updated
newest added

I tried loading retrosheet events for 2023, and got the *ValueError: Event files not available for 2023*. I see that the 2023 data hasn't been released yet even though the...

I was wondering if there was a way to retrieve stolen base attempt data. All I'm really looking for is who was at the defensive positions, the base runners, and...

Hi all, There is currently a failing test when running `pytest` after working on a different issue. ```bash tests/integration/pybaseball/test_statcast_fielding.py:20: in test_statcast_outs_above_average assert len(result.columns) == 17 ERROR tests/integration/pybaseball/test_statcast_fielding.py - AssertionError: assert...

As mentioned in #358, if you were to search `playerid_lookup("tatis", "fernando", fuzzy=True)` right now, you would get duplicate rows for Fernando Tatís Jr and Sr. This is because `fuzzy=True` and...

Whenever I go to fetch data from a statcast function, there is a print statement that is being run ([example](https://github.com/jldbc/pybaseball/blob/e94093b3985f4bbfa88b3c413f16391686163abd/pybaseball/utils.py#L284C1-L284C1)). This is clogging up my output and it would be...

Hi, I followed by [batting_stats](https://github.com/jldbc/pybaseball/blob/master/docs/batting_stats.md) document and tried to use `mnl` to get data but got an error My Code: ```python from pybaseball import batting_stats batting_stats(2023, league="mnl") ``` Error I...

### Related Issue * #375 ### Description * Cache with `statcast` function will have incorrect value and cause `cache.purge()` not work. * Also will cause the cache has no expire...

cannot import these modules (and the documentation examples appear to have a typo of "python" instead of "pybaseball")

I want to run a program every day that takes every team's schedule and results. What this ends up meaning is that every day I end up importing, for example,...

Importing team_pitching specifically from pybaseball and trying to pull any subset of individual year returns a blank frame with a single empty column labeled "teamIDfg". No issues in the past...