Jan-20-2023, 06:42 PM
To avoid to be shorten to scientific notation(n-5e-06),use
float_format
parameter.>>> print(df.to_csv(index=False, line_terminator='\n', float_format='%.6f')) 0 0.000000 -0.000005 -1.859603 -55.788084