python - python/pandas : Pandas 更改值,在值中添加额外的数字
问题描述
我正在通过 pandas 读取一个 csv 文件,如下所示 -
Country, Longitude, Latitude
Netherland,48.436252,-124.068561
Netherland,48.436252,-124.068561
Netherland,48.436252,-124.068561
完成处理后,它正在更改 2 行的纬度值,如下所示。
Country, Longitude, Latitude
Netherland,48.436252,-124.068561
Netherland,48.436252,-124.06856100000002
Netherland,48.436252,-124.06856100000002
这是阅读声明
input_file = pd.read_csv("country.csv",encoding = 'ISO-8859-1')
我没有做任何与经度或纬度列相关的处理。不知道为什么要更改两行中的值以及我可以做些什么来修复它。
解决方案
推荐阅读
- python - Python错误:AttributeError:'str'对象没有属性'read'
- javascript - 移动后具有类的jQuery UI可排序最近元素
- amazon-web-services - AWS:在 RDS Aurora 上启用日志记录,但 general_log 和 slow_log 表为空
- laravel - Laravel - 如何在视图中创建(匿名)动态刀片组件
- excel - 使用高级逻辑清理数据库
- javascript - Chrome ShapeDetetion API BarcodeDetector 适用于 javascript 但不适用于 typescript
- java - 我从后端发送一个错误,但前端没有注册它
- python-3.x - 使用 Python3/OpenCV 在屏幕上显示带有变音符号的字母
- change-data-capture - VSAM 的 LOGSTREAMID 参数
- python - 如何使用 matplotlib 绘制参数区域?