一、AttributeError: ‘numpy.ndarray’ object has no attribute ‘iloc’
解决办法:去除iloc即可,因为numpy中的ndarray没有索引,因此需要转为list格式。
二、too many indices for array: array is 1-dimensional, but 2 were indexed
没搞清楚矩阵的维度
一、AttributeError: ‘numpy.ndarray’ object has no attribute ‘iloc’
解决办法:去除iloc即可,因为numpy中的ndarray没有索引,因此需要转为list格式。
二、too many indices for array: array is 1-dimensional, but 2 were indexed
没搞清楚矩阵的维度