I've been importing multiple txt files and using them to create plots. The code is the same as before but it isn't seeming to work this time. I've taken it back to basics and I have no idea what's going wrong.
import numpy
close('all')
data = []
pixels = []
for i in range(0,92):
data.append(genfromtxt('filename_'+str(i+1)+'.txt', usecols=4))
pixels.append(genfromtxt('filename_'+str(i+1)+'.txt', usecols=5))
I only need the columns stated in the loop as the txt files have multiple values. This returns:
raise ValueError(errmsg)
ValueError: Some errors were detected !
Line #1 (got 2 columns instead of 1)
Line #3 (got 1 columns instead of 1)
Line #5 (got 3 columns instead of 1)
Line #6 (got 3 columns instead of 1)
Line #8 (got 4 columns instead of 1)
Line #10 (got 2 columns instead of 1)
Line #11 (got 2 columns instead of 1)
Line #12 (got 1 columns instead of 1)
Line #35 (got 1 columns instead of 1)
Any help, would be fantastic!