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

Here is the 2023 page: https://www.baseball-reference.com/leagues/majors/2023-rookies.shtml At a minimum it should probably include player name, team and ID. It would be great to also know which players exceeded rookie limits,...

The FanGraphs functions `pitching_stats()` and `batting_stats()` appear to convert names from that [site](https://www.fangraphs.com/leaders/major-league?pos=all&stats=bat&lg=all&qual=y&type=8&season=2023&month=0&season1=2023&ind=0) such as Ronald Acuña Jr. and José Abreu to `Ronald Acuna Jr.`, `Jose Abreu` etc., which are...

I ran into a problem while using this package. I wanted to be strict in my player search, but a lot of my searches were failing due to accented letters....

Hi All, I'm running pybaseball 2.2.7 I'm trying to run pybaseball.people() and getting the following stack trace: ``` --------------------------------------------------------------------------- BadZipFile Traceback (most recent call last) Cell In[12], line 1 ---->...

I'm receiving this error when using player_search_list. I double checked to make sure my syntax is correct. ![image](https://github.com/jldbc/pybaseball/assets/132901077/943a35c8-e1ea-42ca-997b-80381646d8fc)

Currently, the Fangraphs functions can scrape MiLB data from MNL and FL, but cannot scrape ALL (or portions) of data from the new FanGraphs leaderboards found here: https://www.fangraphs.com/leaders/minor-league?sort=23,1

### Description * FanGraphs update their leaderboard page in 2023. Therefore the old data scraping does not work. Currently, we use their legacy url https://www.fangraphs.com/leaders-legacy.aspx now. But the legacy one...

The top_prospects function now can intake a category for batters or pitchers so that it can be sorted based on that category

This is my process ``` # returns 2023 season stats (dataframe includes the rookies when inspected) fg = pb.fg_batting_data(2023, qual=0) # create lookup table for all players in 2023 lookup...

Replacing print statements with logger module