jldbc / pybaseball

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

Feature Request: Position Appearances #66

Open ttaylor14 opened 4 years ago

ttaylor14 commented 4 years ago

It may be a difficult feature to add, but I would like to see the addition of player position appearances added. I realize this data is recorded in the Lahman Database, but that does not include the current season appearances. This information could be valuable in determining differences between positions, position scarcity, and other important areas of analysis.

schorrm commented 4 years ago

is there a data source for this?

ttaylor14 commented 4 years ago

I know a lot of Fantasy websites have ways of tabulating this information such as: https://www.rotowire.com/baseball/games-by-pos.php https://www.draftbuddy.com/baseball/games_played_by_position.php https://www.baseball-reference.com/leagues/MLB/2019-appearances-fielding.shtml

I am unsure where else this data might be located besides sorting through team rosters for every game of the year. However, I will keep searching.

schorrm commented 4 years ago

That B-Ref link looks pretty similar to the Lahman format -- it shouldn't be hard to do that based on the existing functions to scrape B-Ref tables