jldbc / pybaseball

Pull current and historical baseball statistics using Python (Statcast, Baseball Reference, FanGraphs)
MIT License
1.28k stars 334 forks source link

League wide schedule and record. #151

Closed Am3ra closed 4 years ago

Am3ra commented 4 years ago

I want to do an analysis on the games of the whole league on a game-by-game basis, like what schedule_and_record does. The problem with the current function is that to get the whole league data, i have to iterate over every team (which I also had to find, maybe we should consider creating a constant?) and then remove duplicate games.

It should be possible to do a league-wide schedule and record.

I'll try to look into it to do it myself, but help is appreciated!

Am3ra commented 4 years ago

season_game_logs() Works to provide the game-by-game information, but doesn't provide the win streaks of each team. Ah well, I guess I just didn't want to use that function in the end.