我正在查看stats.nba.com/teams/gamelogs中的数据并获取特定游戏的数据框(http://stats.nba.com/game/#!/0021600836/)。如何仅选择列为' TEAM_CITY' ==' Boston'?
var keys = ['Id1', 'Id2', 'Id3'];
tablename.deleteRows(keys, function(err, apiResponse) {});
给出了一个输出:
df_total['TEAM_CITY'].values
我做了nba_py的pip安装,我的代码如下:
array([u'Boston', u'Boston', u'Boston', u'Boston', u'Boston', u'Boston',
u'Boston', u'Boston', u'Boston', u'Boston', u'Boston', u'Boston',
u'Boston', u'Chicago', u'Chicago', u'Chicago', u'Chicago',
u'Chicago', u'Chicago', u'Chicago', u'Chicago', u'Chicago',
u'Chicago', u'Chicago', u'Chicago', u'Chicago'], dtype=object)