I want to write a data frame into csv which contains numeric columns as well as character columns.
Some numeric columns are integers which I want to display as integers and some are decimals in which I need to control the number of digits after decimal and obviously no change in character columns
How can I do this? Eq a particular row in that dataframe is
XYZ 8200 0.306060606 ABC
Output should be
XYZ 8200 0.30 ABC
Regards