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]: shotchartlineupdetail is not working #481

Open
jtvanwingen opened this issue Nov 15, 2024 · 1 comment
Open

[Bug]: shotchartlineupdetail is not working #481

jtvanwingen opened this issue Nov 15, 2024 · 1 comment
Labels
endpoint: third-party issue Issues, unrelated to the library, that exists within the 3rd-party's API service.

Comments

@jtvanwingen
Copy link

NBA API Version

1.5.0

Issue

Continuously getting KeyError: 'resultSet' when I try and pull the data

Code

from nba_api.stats.endpoints import shotchartlineupdetail
import json

shot_chart = shotchartlineupdetail.ShotChartLineupDetail(
season = 2018-19
)

Get the shot chart data as a pandas dataframe

shot_chart_data = shot_chart.get_data_frames()[0]

Print the shot chart data

print(shot_chart_data.head())

@jtvanwingen jtvanwingen added bug Something isn't working triage Researching into a possible bug labels Nov 15, 2024
@rsforbes rsforbes added endpoint: third-party issue Issues, unrelated to the library, that exists within the 3rd-party's API service. and removed bug Something isn't working triage Researching into a possible bug labels Dec 14, 2024
@rsforbes
Copy link
Collaborator

@jtvanwingen - The NBA has been retiring several endpoints. This appears to be one of those. I have it on my backlog to do some testing in this area. This isn't the first, second, or even the fifth one I've seen. 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
endpoint: third-party issue Issues, unrelated to the library, that exists within the 3rd-party's API service.
Projects
None yet
Development

No branches or pull requests

2 participants