Probably it is an old question, I found the similar questions below but I still can see the scientific notation in my output file.
Suppressing scientific notation in pandas?
Pandas read scientific notation and change
Python Pandas Scientific Notation Iconsistent
I have tried to incorporate set_option
and df.apply(pd.to_numeric, args=('coerce',))
etc to my code below while do not work.
df = pd.read_csv(Input)
dfNew = df[['co_A','co_B','co_C']]
# I firstly select columns from df then would like to convert scientific notation to decimal type in my output file.
dfNew.to_csv(Output, index = False, sep = '\t')
Still I can see scientific notation in my output file. Anyone can help?
co_A co_B co_C
167 0.0 59.6
168 0.0 60.6
191 8e-09 72.6
197 -4.7718e-06 12.3
197 0.0 92.4
198 0.0 39.5