python-mlb-statsapi
                                
                                 python-mlb-statsapi copied to clipboard
                                
                                    python-mlb-statsapi copied to clipboard
                            
                            
                            
                        Python Wrapper for the MLB's Official Stats API
@KCNilssen @Mattsface Looks like another GameInfo.___init___() adjustment needs to be made. Positional arguments attendance & gamedurationminutes, errors. Call works for all but 2 gamePK's(745114 & 746083). **Input** [mlb_games.csv](https://github.com/zero-sum-seattle/python-mlb-statsapi/files/14853811/mlb_games.csv) **Output** [mlb_games_ready.csv](https://github.com/zero-sum-seattle/python-mlb-statsapi/files/14853843/mlb_games_ready.csv)...
Looks like the API may have been updated with a new "note" attribute added to some players in the 40 man (mostly injury notes) when doing this call `mlb.get_team_roster(121, rosterType...
### Why Running this code with 'gameLog', which is a valid stat input was giving an unexpected keyword summary exception: ``` stats = ['gameLog'] groups = ['hitting'] params = {'season':...
**API Call** mlbstatsapi.Mlb().get_team_stats(team_id=116, groups="pitching", stats="sabermetrics") **Return** File "C:\Users\pivir\AppData\Local\Programs\Python\Python311\Lib\site-packages\mlbstatsapi\mlb_api.py", line 2101, in get_team_stats splits = mlb_module.create_split_data(mlb_data.data['stats']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\pivir\AppData\Local\Programs\Python\Python311\Lib\site-packages\mlbstatsapi\mlb_module.py", line 115, in create_split_data split_data = return_splits(stat['splits'], stat_type, stat_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\pivir\AppData\Local\Programs\Python\Python311\Lib\site-packages\mlbstatsapi\mlb_module.py",...
get_game is returning a type error, "TypeError: PitchBreak.__init__() missing 2 required positional arguments: 'breaklength' and 'breaky'" for games in progress. As of 9:28 Central time on 8/26/24: For 745458, which...
`schedule = mlb.get_schedule(day)` This throws this error: Traceback (most recent call last): TypeError: ScheduleGames.__init__() got an unexpected keyword argument 'gameguid'