I am trying to read .txt with missing values โโusing pandas.read_csv. My data has the format:
10/08/2012,12:10:10,name1,0.81,4.02,50;18.5701400N,4;07.7693770E,7.92,10.50,0.0106,4.30,0.0301 10/08/2012,12:10:11,name2,,,,,10.87,1.40,0.0099,9.70,0.0686
with thousands of samples with the same point name, gps position and other readings. I am using the code:
myData = read_csv('~/data.txt', sep=',', na_values='')
The code is incorrect because na_values โโdoes not give NaN or another indicator. The columns should be the same size, but I end up with different lengths.
I donโt know what should be entered after na_values โโ(I tried all different things). thanks
tomasz74
source share