原文:pymysql下报错:numpy.float64 object has no attribute 'translate' 可能是pandas版本的问题

pymysql下报错:numpy.float object has no attribute translate .定位到db.merge函数中,dataframe中浮点型元素的类型为numpy.float ,这种类型没有 translate 属性.网上说应该把它转化成float类型,但是之前同事的程序就能够跑通,很是奇怪.最后在linux运行这段用例,发现可以,最终确定了原来是pandas版本 ...

2019-02-14 21:45 0 4584 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM