jldbc / pybaseball

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

Not all players appear when using batting_stats #244

Closed rshah742 closed 1 year ago

rshah742 commented 2 years ago

I am using pybaseball 2.2.1, but for some reason when I try and using batting_stats, I don't get data for every MLB player. For example, if I filter for just NYY players, I only get four of them.

Is anyone else experiencing this?

pybaseball

blacktj commented 2 years ago

If you read through the underlying code, you'll see that qual='y' as a default. Meaning you're only seeing qualifying hitters. By setting qual='n' it returns 1.5k hitters:

Screen Shot 2022-01-01 at 1 41 47 PM
rshah742 commented 2 years ago

If you read through the underlying code, you'll see that qual='y' as a default. Meaning you're only seeing qualifying hitters. By setting qual='n' it returns 1.5k hitters: Screen Shot 2022-01-01 at 1 41 47 PM

Thank you so much!