usually, I use python to read csv files, the structure of which looks like:
date1, value1_1, value1_2, value1_3, ...
date2, value2_1, value2_2, value2_3, ...
...
in this case, one line is one piece of data and I just use numpy.loadtxt() to read them.
but today, my colleague gave me a file with block structure, which looks like:
date1
value1_1, value1_2
value1_3, ...
date2
...
and this gives me a headache...
Does anyone have any good solution for this? Is there a function I can use to deal with this file, or do i have to write a reading_messed_files() function myself?