Suppose I have a list
mix = numpy.array(['1.', '2.', 'a'])
How can I convert string to float when possible, so that I could get:
array([1., 2., 'a'])
I try to use try / exception with astype(), but it won't convert a single element.
Update:
In csv package, there is csv.QUOTE_NONNUMERIC, I am wondering if numpy supports something similar.