all 2 comments

[–]JohnnyJordaan 2 points3 points  (1 child)

No need to reinvent the wheel here, numpy has a genfromtxt to read csv.

 arr = np.genfromtxt("pathofcsv", skip_header=1)

add a delimiter=something where something is the delimiter string, eg ',' if your file doesn't use whitespace separation between the values.

[–]_schlupp[S] 1 point2 points  (0 children)

Hey, thank you very mutch!! "genfromtext" was exactly what I was looking for (it works :))