简体   繁体   中英

Is there a way to let excel recognize decimal placement?

I've written a csv file with the .to_csv function. This worked fine but when I open the csv file in excel, excel doesn't recognise the decimal placement.

For example:
A number that was supposed to be 100611.52421.. is displayed in Excel as 1006115242123330 . I know nothing went wrong with writing the file because when I display the csv file in visual studio code I can see the dot.
Does anyone know how I can properly open the csv file?

Thanks in advance

I don't think there's anything wrong with your CSV file. I believe your regional settings are wrong: the dot is not recognised as a decimal separator.
In order to fix this, check the following in your configuration settings:

在此处输入图像描述

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