Every line of 'convert list to np array' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
17 def to_nd_float_array(list_obj): 18 return np.array(list_obj, dtype=np.float32)
308 def to_array_(v): 309 return v.toArray().tolist()