swar / nba_api

An API Client package to access the APIs for NBA.com
MIT License
2.53k stars 541 forks source link

[Bug]: shotchartlineupdetail is not working #481

Open jtvanwingen opened 1 week ago

jtvanwingen commented 1 week ago

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())