Load Data From Csv Into Numpy Array
I am trying to load data in a csv file (with delimiter ',') into a numpy array. Example of a line is: 81905.75578271,81906.6205052,50685.487931,.... (1000 columns). I have this cod
Solution 1:
This should give you your required output.
import numpy as np
def load_data(path):
return np.loadtxt(path,delimiter=',')
Post a Comment for "Load Data From Csv Into Numpy Array"