I am new to python and am trying to reformat a CSV file, it is not delimited so all the data is in the first column. The file is very large say 1 gb to big for excel. The file format is as follows, note the time sequence in the old file is reversed newest to oldest, want to reverse it in new file with oldest to newest.
old file is
tagname1 tagname2 value1(t) value2(t) timestamp(t)
tagname1 tagname2 value1(t-1) value2(t-1) timestamp(t-1)
tagname1 tagname2 value1(t-2) value2(t-2) timestamp(t-2)
desired file format
timestamp(t-2) tagname1 tagname2 value1(t-2) value2(t-2)
timestamp(t-1) tagname1 tagname2 value1(t-1) value2(t-1)
timestamp(t) tagname1 tagname2 value1(t) value2(t)