问题描述
我有一个在 t 列中有重复项的数据框,但是当我运行 drop_duplicates 函数时,会返回以下错误。有人可以解释一下如何解决这个问题吗?
print(df.columns)
Index(['t','ax','ay','az','gx','gy','gz','mx','my','mz','movement','hand','trial_1','trial_2','trial'],dtype='object')
df.drop_duplicates(subset= left_data.loc[:,'t'],keep='first',inplace=True,ignore_index=True) ```
KeyError: Int64IndeX
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)