简体   繁体   中英

How To Convert Number format from Scientific Notation to Number python?

So in my csv file, a column of numbers are listed in scientific notation (Ex:1.945019e+11), but its not just zeroes past the 1.945019. There are more values, like 1.9450192304..., and its possible to revert the notation to a number in excel. How can I get python to convert this scientific notation back to a number?

You can't invent digits that aren't there. If the CSV contains 1.945019E+11, then that's all you can read. You need to get Excel to save the extended format.

Excel stores in the CSV exactly what is displayed on the screen. If you have the cell format set to 6 decimals, then that's all it is going to write in the CSV. You'll have to expand the onscreen format to show what you want.

Perhaps you will need to read the xlsx file directly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM