问题描述
首先感谢@swar对此API的应用程序,它非常有用!
我正在尝试使用“ nba_api.stats.endpoints import teamdashptpass”来检索传递数据,以尝试制作图形网络。虽然在尝试打印数据时出现错误。这是我的相关代码:
td = teamdashptpass.TeamDashPtPass(team_id=1610612761,opponent_team_id=1610612748,last_n_games="1",league_id="00",month="6",per_mode_simple="Totals",season="2019-20",season_type_all_star="Regular Season")
print(td.get_data_frames())
这是我的控制台的样子:
[Empty DataFrame Columns: [TEAM_ID,TEAM_NAME,PASS_TYPE,G,PASS_FROM,PASS_TEAMMATE_PLAYER_ID,FREQUENCY,PASS,AST,FGM,FGA,FG_PCT,FG2M,FG2A,FG2_PCT,FG3M,FG3A,FG3_PCT] Index: [],Empty DataFrame Columns: [TEAM_ID,PASS_TO,FG3_PCT] Index: []]
我在应用程序中在做错什么吗?
谢谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)