how to avoid pandas.to_csv to convert string to float code example
Example: string to float python pandas
df['DataFrame Column'] = df['DataFrame Column'].astype(float)
df['DataFrame Column'] = df['DataFrame Column'].astype(float)