Is this a bug?
import numpy as np
a1=np.array(['a','b'])
a2=np.array(['E','F'])
In [20]: add(a1,a2)
Out[20]: NotImplemented
I am trying to do element-wise string concatenation. I thought Add() was the way to do it in numpy but obviously it is not working as expected.
This can be done using numpy.char.add. Here is an example:
(This was previously known as
numpy.core.defchararray.add, and that name is still usable, butnumpy.char.addis the preferred alias now.)There are other useful string operations available for NumPy data types.