Pandas.DataFrame.loc(. . .) - TypeError: list indices must be integers or slices, not str

前端 未结 0 1062
醉梦人生
醉梦人生 2021-01-29 06:07
for t in teams:
eventsByTeam[str(t)] = df.loc[(df[\'teamId\'] == t) & (df[\'positions\'][0][\'x\'] == 50)]

The above code will not run, citing a

相关标签:
回答
  • 消灭零回复
提交回复
热议问题