I have a csv file with a header containing title of each column. I want to convert all the numbers to scientific notation format with only 2 decimal places. i.e. 23452 should be converted to 2.34e+04 and 0.00023452 to 2.34e-04.
However, I want the first column to be left untouched. It is of the form text_number for e.g. ABC_100. I don't want ABC_100 to get converted to ABC_1e+2.
Simply speaking, leaving the first column and first row, I want everything to change to 2 decimal scientific format.
Example file:
Name,ClassA,ClassB,ClassC
File_10,2342,0.0212,34.234
File_50,43.234,7834,0.0024
File_100,300,0.0024,2.2341e-5
Expected Output:
Name,ClassA,ClassB,ClassC
File_10,2.34e+03,2.12e-02,3.42e+01
File_50,4.3e+01,7.83e+03,2.4e-03
File_100,3e+02,2.4e-03,2.23e-5