I have data stored in a CSV where the first row is strings (column names) and the remaining rows are numbers. How do I store this to a numpy array? All I can find is how t
I'm not sure what you mean when you say you need the headers in the final version, but you can generate a structured array where the columns are accessed by strings like this:
data = np.genfromtxt(path_to_csv, dtype=None, delimiter=',', names=True)
and then access columns with data['col1_name'], data['col2_name'], etc.