pybaseball icon indicating copy to clipboard operation
pybaseball copied to clipboard

Not all players appear when using batting_stats

Open rshah742 opened this issue 3 years ago • 2 comments

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

rshah742 avatar Jan 01 '22 18:01 rshah742

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

blacktj avatar Jan 01 '22 18:01 blacktj

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!

rshah742 avatar Jan 01 '22 18:01 rshah742