Open jtvanwingen opened 1 week ago
1.5.0
Continuously getting KeyError: 'resultSet' when I try and pull the data
from nba_api.stats.endpoints import shotchartlineupdetail import json
shot_chart = shotchartlineupdetail.ShotChartLineupDetail( season = 2018-19 )
shot_chart_data = shot_chart.get_data_frames()[0]
print(shot_chart_data.head())
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())