![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python数据处理
amurphy_yu
这个作者很懒,什么都没留下…
展开
-
pandas处理excel功能实现
part I功能:将表格T1转化为T2的形式,根据x,y填充zT1abc11a1b1c22a2b2c33a3b3cT21b2b3b1a1c2a2c3a3cT2 = pd.DataFrame(index = T1[a].drop_duplicates(), columns = ...原创 2019-09-13 19:11:11 · 120 阅读 · 0 评论 -
json数据转换为DataFrame
import jsonimport pandas as pddf = pd.DataFrame()data = []with open(path,'r', encoding = 'GB2312') as fr: for line in fr: j = json.loads(line) data.append(j) for i in...转载 2019-10-09 18:19:39 · 800 阅读 · 0 评论