I concatenated some daily data files of ammonia concentration values and I wanted to sort them in increasing order of latitude and longitude using the help of this answer: sort csv by column
After that, when I see my sortedlist (used in the solution for multiple column sorting) it gives me:
print(sortedlist)
[OrderedDict([('', '7'), ('lat', '10.25'), ('lon', '72.25'), ('nh', '6150295245484870.0'), ('err', '28.55')]), OrderedDict([('', '23'), ('lat', '10.25'), ('lon', '72.25'), ('nh', '6609984397284026.0'), ('err', '42.33')]), OrderedDict([('', '7'), ('lat', '10.25'), ('lon', '72.25'), ('nh', '6150295245484870.0'), ('err', '12.24')]), OrderedDict([('', '23'), ('lat', '10.25'), ('lon', '72.25'), ('nh', '6609984397284026.0'), ('err', '10.34')])]
How do I write these values to another csv file? The values in OrderedDict shown here are very small I have like 500Kb data!!!