ufunc ‘multiply’ did not contain a loop with signature matching types (dtype(’<U32’), dtype(’<U32’)) -> dtype(’float64’)
时间: 2023-10-25 17:07:48 浏览: 392
stm32f4标准库C++与C混合开发工程
This error message is likely caused by attempting to multiply two strings together, which is not a supported operation in NumPy.
To solve this error, you need to check your code and make sure that you are not trying to perform mathematical operations on non-numeric data types. You can try converting the strings to numeric data types before attempting to multiply them.
For example, you can use the `astype()` method to convert a string to a numeric data type:
```
x = "5"
y = "10"
result = float(x) * float(y)
print(result)
```
Output:
```
50.0
```
阅读全文