numpy
-
TypeError: ufunc 'multiply' did not contain a loop with signature matching types dtype('S32')python/errors and solved 2017. 11. 26. 15:10
"TypeError: ufunc 'multiply' did not contain a loop with signature matching types dtype('S32')" If you create an array of numpy and then do an operation. >>> a = numpy.array(datingLabels)>>> aarray(['3', '2', '1', '1', '1', '1', '3', '3', '1', '3', '1', '1', '2', '1', '1', '1', '1', '1', '2', '3', '2', '1', '2', '3', '2', '3', '2', '3', '2', '1', '3', '1', '3', '1', '2', '1', '1', '2', '3', '3',..