Hi,
Did you try numpy.asfarray(obj_arr) ?
Matthieu
Hi
What's the most efficient way of casting an object array to a double
ndarray?
other than
numpy.array(obj_arr.tolist(),dtype='d')
The original data is a list of tuples form a SQL query which could
potentially contain None
Indeed a masked array would be more ideal where None is replaced by
the mask
I'm currently using list comprehension to replace the None in the
original data with the mask
But i wish to eliminate this step if possible
Regards
Chris
_______________________________________________
SciPy-user mailing list
SciPy-user@scipy.org
http://projects.scipy.org/mailman/listinfo/scipy-user