How do I read CSV data into a record array in NumPy?
Use numpy.genfromtxt() by setting the delimiter kwarg to a comma: from numpy import genfromtxt my_data = genfromtxt(‘my_file.csv’, delimiter=”,”)
Use numpy.genfromtxt() by setting the delimiter kwarg to a comma: from numpy import genfromtxt my_data = genfromtxt(‘my_file.csv’, delimiter=”,”)