List to array conversion to use ravel() function
arrays, list, numpy, python
Solution
Use `numpy.asarray`:
import numpy as np
myarray = np.asarray(mylist)
Problem
I have a list in python and I want to convert it to an array to be able to use `ravel()` function.