![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pandas
最爱吃菠萝
这个作者很懒,什么都没留下…
展开
-
to_csv乱码
ttt.to_csv(r"D:/python_test/CRM/CRM数据表/Account.csv",encoding=‘utf-8’)出现中文乱码修改为:ttt.to_csv(r"D:/python_test/CRM/CRM数据表/Account.csv",encoding=‘utf_8_sig’)原创 2019-03-22 17:18:37 · 371 阅读 · 0 评论 -
DataFrame对行列的基本操作实战
import numpy as npimport pandas as pdfrom pandas import Sereis, DataFrameser = Series(np.arange(3.))data = DataFrame(np.arange(16).reshape(4,4),index=list(‘abcd’),columns=list(‘wxyz’))data[‘w’] ...转载 2019-04-04 16:26:11 · 2686 阅读 · 1 评论