German version of Origin [TM] saves .csv files very odd. However I have many of these .csv files and want to convert them with a script.
A,B
Independent variable,comment1
"0,4","0,067"
"0,0","0,08"
"0,07","0,02"
"0,09","0,00"
should become
A,B
# Independent variable,comment1
0.4,0.067
0.0,0.08
0.07,0.02
0.09,0.00
The definition of a comment by Origin seems to be
it is the second line
If there is structure to your csv files, and Kevin’s comment above is correct, then you can use ranges by line number:
Or a slightly shorter way:
Results: