有没有办法让Excel识别小数位置?
我已经编写了一个使用.to_csv
函数的CSV文件。这效果很好,但是当我在Excel中打开CSV文件时,Excel无法识别小数位置。
例如:
一个应该为100611.52421 ..
的数字显示为> 1006115242123330
。我知道编写文件没有什么问题,因为当我在Visual Studio代码中显示CSV文件时,我可以看到点。
有人知道我如何正确打开CSV文件吗?
提前致谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您的CSV文件没有任何问题。我相信您的区域设置是错误的:该点不被认为是小数分离器。
为了解决此问题,请在配置设置中检查以下内容:
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: