statcast_pitcher_spin not working
johnnynienstedt opened this issue · 1 comments
johnnynienstedt commented
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(...)
ss77995ss commented
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)