Traceback (most recent call last): File "E:\pythonProject\ADMM\testa.py", line 30, in <module> X = data[:, :-1]

动态 未结 0 79
小小草
小小草 LV1 2023年9月23日 23:40 发表
This error occurs when trying to access a column in a pandas DataFrame using an invalid key. In this case, the key used is a tuple containing two slices, which is not a valid way to access columns. To fix this error, check the key used to access the DataFrame and make sure it is a valid column name or index. If using a slice, make sure it is a valid slice that includes all necessary columns.
收藏(0)  分享
相关标签: 智能问答
问题没解决?让AI助手帮你作答 AI助手
0个回复
  • 消灭零回复