numpy ValueError shapes not aligned numpy ValueError shapes not aligned numpy numpy

numpy ValueError shapes not aligned


Ok, found the bug, I had to reshape the data

cells.append(np.reshape((np.array(pdata),(150,1)), int(number)))

Seems like an array with dimensions (x,1) and (x,) are treated differently by numpy during computations