I have the following NumPy array of strings
array(['cwp+17', 'cn95', 'awd+12', ..., 'dgb+19', 'mbc+19', 'acd+19']
I have sliced this array as follows to get the number part
RA = [x[-2:] for x in RA]
RA = np.asarray(RA)
and now it looks like this
array(['17', '95', '12', ..., '19', '19', '19'], dtype='<U2')
Now, I would like to convert this array of string to NumPy float array. I have tried the methods described in this post and few other places, but I am receiving the error in the title. Why these methods do not work in my string arrays and how can I convert it? Thanks.