I am new with python and I want to read my data from a .txt file. There are except of the header only floats. I have 6 columns and very much rows. To read it, I'm using genfromtxt. If I want to read the first two columns it's working, but if i want to read the 5th column I'm getting the following error:
Line #1357451 (got 4 columns instead of 4)
here's my code:
import numpy as np
data=np.genfromtxt(dateiname, skip_header=1, usecols=(0,1,2,5))
print(data[0:2, 0:3])
I think there are missing some values in the 5th column, so it doesn't work. Has anyone an idea to fix my problem and read the datas of the 5th column?