If I do
import numpy as np
l = np.array([1, 2, 3, 'A', 'B'], dtype=str)
print(l + l)
I get the error "numpy.core._exceptions.UFuncTypeError: ufunc 'add' did not contain a loop with signature matching types (dtype('<U3'), dtype('<U3')) -> dtype('<U3')"
I don't understand why something like this would happen, l surely has the same dtype as itself. If I also create a new array and try to add them both, this error will still occur, even after converting both dtypes to str.