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

[Bug]: DefenseHub not working? #395

Open
ToTheHoop2023 opened this issue Nov 7, 2023 · 1 comment
Open

[Bug]: DefenseHub not working? #395

ToTheHoop2023 opened this issue Nov 7, 2023 · 1 comment
Labels
bug Something isn't working triage Researching into a possible bug

Comments

@ToTheHoop2023
Copy link

NBA API Version

1.3.1

Issue

Trying to access the available data from the DefenseHub endpoint and not having much success. The error I am getting is "Expecting Value". I am working in Python and have included my code below. Whether I explicitly pass through all the parameters or not the error is the same. Am I overlooking something simple or is this broken? I saw a post from a couple of years ago but it wasn't clear to me if it was adrdessed, fixed etc.

Code

from nba_api.stats.endpoints import DefenseHub

df=DefenseHub(game_scope_detailed='Season', league_id='00', player_or_team='Team', player_scope='All Players',
season='2023-24', season_type_playoffs='Regular Season')

@ToTheHoop2023 ToTheHoop2023 added bug Something isn't working triage Researching into a possible bug labels Nov 7, 2023
@nathanzjin
Copy link

I think instead of using the DefenseHub endpoint you can use LeagueDashTeamStats and change the MeasureType parameter to "Defense"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Researching into a possible bug
Projects
None yet
Development

No branches or pull requests

2 participants