pybaseball icon indicating copy to clipboard operation
pybaseball copied to clipboard

team_batting for 2021 pulling pitching stats

Open christopherjluke opened this issue 3 years ago • 2 comments

Wanted to flag that team_batting is pulling pitching stats specifically for 2021. Tested on different years and everything is working. Tried uninstalling pybaseball entirely and still getting this issue. Screen Shot 2022-07-06 at 11 11 12 PM

christopherjluke avatar Jul 07 '22 03:07 christopherjluke

I'm getting the same issue but specifically for 2022 rather than 2021, years before 2021 work fine but 2022 pulls the pitching data. For a workaround, I found that doing team_batting(2022, ind=1) works properly and returns team stats. Not sure why that would fix it though

happymountains avatar Jul 07 '22 12:07 happymountains

This seems like the the same caching issue mentioned here https://github.com/jldbc/pybaseball/issues/267

can you update to v2.2.3 and see if the issue still persists?

bdilday avatar Jul 07 '22 13:07 bdilday