I am trying to read a text file which contains a number of columns and dump the array into a dictionary. The first row would be a key of the dictionary, and the rest of the rows are list (values of the key), in which the header has : separation Data is from a text file not from a csv
DateTime: Column1: test result: bar date:
1-2-2012 a replicate postive 1-3-2012
Expected output:
{'DateTime':'1-2-2012','Column1':'a replicate','test result':'postive','bar date':'1-3-2012'}