-
Notifications
You must be signed in to change notification settings - Fork 547
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
[Bug]: playbyplayv3 throws an error when running get_dat_sets() within get_request #433
Comments
I'm experiencing a bug with playbyplayv3 as well, though apparently different than yours. Actually, I think I've spotted a bug with your code:
Specifically in line 2 of the above function, shouldn't the line read: It looks like the error is being thrown a line above that so that might not change anything anyway. Anyway, this is the error I'm experiencing with the endpoint: CODE
ERROR
Not sure if they're related but they're both bugs with playbyplayv3 so figured I'd chime in too. |
@pfredCL, you need use full game_id: from nba_api.stats.endpoints import playbyplayv3
pbp = playbyplayv3.PlayByPlayV3(game_id='0022201163')
print(pbp.get_data_frames()[0]) |
@shufinskiy you're a lifesaver, thank you! |
NBA API Version
1.4.1
Issue
When attempting to fetch play-by-play data using the playbyplayv3.PlayByPlayV3() method from the nba_api library, a TypeError is raised indicating that NBAStatsResponse.get_data_sets() takes 1 positional argument but 2 were given.
Thanks for all the work on this library - it is so so so useful.
Code
Stack trace
The text was updated successfully, but these errors were encountered: