pybaseball icon indicating copy to clipboard operation
pybaseball copied to clipboard

statcast_pitcher_spin not working

Open johnnynienstedt opened this issue 1 year ago • 1 comments

data = pybaseball.statcast_pitcher_spin('2019-07-01', '2019-07-31', player_id = 506433)

AttributeError: module 'pybaseball' has no attribute 'statcast_pitcher_spin'

Seems to simply not exist. Has this been depricated?

Also, just a clerical error but in statcast_pitcher_spin.md, the top line is statcast_pitcher(...) instead of statcast_pitcher_spin(...)

johnnynienstedt avatar Aug 16 '24 17:08 johnnynienstedt

Hi @johnnynienstedt Sorry for the late response. I think you could try to import the function by this line

from pybaseball.statcast_pitcher_spin import statcast_pitcher_spin

The reason why is because currently the __init__.py file does not import statcast_pitcher_spin . Therefore, we might need to add this line to import the function. Have a try!

*Edit: Or you could try this

pybaseball.statcast_pitcher_spin.statcast_pitcher_spin('2019-07-01', '2019-07-31', player_id = 506433)

ss77995ss avatar Sep 18 '24 13:09 ss77995ss