My current code contains the following:
columns=[(0,4), (4,8), (8,9), (9,10), (20,22), (23,24)]
header=['var1','var2','var3','var4','var5','var6']
file=pd.read_fwf('file_name.gz', compression='gzip', colspec=columns, names=header)
When I run I get the following : ValueError: Expected 8 fields in line 1, saw 3
The data contained in the input file looks as follows:
02011602160108 26 312870000
It seems to be reading the white space instead of noting the column specs
colspecs, ie. plural