Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/353.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 使用teamdashptpass.teamdashptpass,尽管尝试获取数据帧时获取的数据帧为空。获取数据帧()_Python_Nba Api - Fatal编程技术网

Python 使用teamdashptpass.teamdashptpass,尽管尝试获取数据帧时获取的数据帧为空。获取数据帧()

Python 使用teamdashptpass.teamdashptpass,尽管尝试获取数据帧时获取的数据帧为空。获取数据帧(),python,nba-api,Python,Nba Api,首先感谢@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&qu

首先感谢@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, TEAM_NAME, PASS_TYPE, G, PASS_TO, PASS_TEAMMATE_PLAYER_ID, FREQUENCY, PASS, AST, FGM, FGA, FG_PCT, FG2M, FG2A, FG2_PCT, FG3M, FG3A, FG3_PCT] Index: []]
我在应用程序中有什么地方做错了吗


提前谢谢。

你有没有用过这个?今天晚上我一直在玩弄你的电话,在过去的几场比赛和几个月里,我得到了以下工作
teamdashptpass.teamdashptpass(团队id=1610612761,对手团队id=1610612748,联赛id=“00”,每模式简单=“总计”,赛季=“2019-20”,赛季类型全明星=“常规赛”)
还不确定这两个参数的效果。