Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

statcast_pitcher_spin not working #445

Open
johnnynienstedt opened this issue Aug 16, 2024 · 1 comment
Open

statcast_pitcher_spin not working #445

johnnynienstedt opened this issue Aug 16, 2024 · 1 comment

Comments

@johnnynienstedt
Copy link

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
Copy link

ss77995ss commented Sep 18, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants