I have a small amount of data in a file which I want to use to draw plots. I can't see any problem with the following code, but running it results in the error message below.
`a,b,c = np.loadtxt('myfile.csv', delimiter=',', usecols=(0,12,18), skiprows=1, dtype=('S5, i4, S8'), unpack=True)`
ValueError: too many values to unpack
I know that this error message usually means that there is an imbalance between the left and right sides of the statement, but in the code above a,b,c then 0,12,18 and S5, i4, S8 all refer to 3 sets of data.
Am really scratching my head with this one - any advice greatfully received.