pybaseball
pybaseball copied to clipboard
Pull current and historical baseball statistics using Python (Statcast, Baseball Reference, FanGraphs)
Calls to functions that scrape Fangraphs for data return empty Dataframes after the [most recent update to their leaderboards interface.](https://blogs.fangraphs.com/weve-updated-our-major-league-leaderboards-interface/)
While getting all of the statcast data, I kept getting an error around 98%. So I eventually was able to narrow it down to 2023-06-25 being the first problematic one...
Splits
Can we sub in start_dt & end_dt for year here? get_splits(playerid, year=None, player_info=False, pitching_splits=False)
running pitching_stats with Kent Tekulve's playerid results in this error: ```cmd >>> pitching_stats(start_season=1979, end_season=1980, players=1012905) Traceback (most recent call last): File "/home/yzhang/.envs/deadball_env/lib/python3.9/site-packages/pandas/core/internals/construction.py", line 934, in _finalize_columns_and_data columns alidate_or_indexify_columns(contents, columns) File...
I have discovered that pitching_stats_range will not fetch data. Calling the function for any data range will regularly result in an index out of range error. On occasion the call...
The chadwick name for tatis and his father are the same, so when doing the merge it ends up duplicating the rows for both, so ends up with a couple...
I'm aware of the issues in the past few months with playerid_reverse_lookup() and playerid_lookup(), but I upgraded my pybaseball packages and am still having the issue. It is not returning...
Baseball Reference has information on the state a starter left the game in when he was pulled (e.g. `8b --- 2 out a2` for 7.2 innings, bases empty, up by...
pandas.errors.ParserError: Error tokenizing data. C error: Expected 1 fields in line 13, saw 2 Stems from get_statcast_data_from_csv. Happens on 2022-07-17
This happens for quite a few players and it happens over every year Executing: `get_splits("kershcl01", 2015)` Throws: ``` IndexError: single positional indexer is out-of-bounds at pybaseball\split_stats.py", line 128, in get_splits...