From my understanding, the scikit-learn accepts data in (n-sample, n-feature) format which is a 2D array. Assuming I have data in the form ...
Stock prices in
You can look up the loadtxt function in numpy.
To get the optional inputs into the loadtxt method.
A simple change for csv is
data = np.loadtxt(fname = f, delimiter = ',')