索引错误:布尔索引与维度0上的索引数组不匹配;维度是2000,但相应的布尔维度是1001

时间:2018-10-15 18:38:48

标签: python python-3.x numpy

我有一个len 2000的列表,当我尝试将其转换为numpy数组时,出现此错误:

Index Error: boolean index did not match indexed array along dimension 0;
  dimension is 2000 but corresponding boolean dimension is 1001

代码段:

NCR = NCR + GROUPED 
print(len(NCR))               # 2000 
INCR_RESULT = np.array(NCR)   # ERROR!

有什么建议吗?

0 个答案:

没有答案