11 2021 档案

摘要:原始数据为: >>> a # I have array([[1, 1, 1, 0, 0, 0], [0, 1, 1, 1, 0, 0], [0, 1, 1, 1, 0, 0], [1, 1, 1, 0, 0, 0], [1, 1, 1, 1, 1, 0]]) 需要变成的数据为: >>> new_a 阅读全文
posted @ 2021-11-01 10:51 bingo彬哥 阅读(233) 评论(0) 推荐(0) 编辑
摘要:In[38]: df.groupby(['name','month'])['text'].apply(','.join).reset_index() Out[38]: name month text 0 name1 11 du 1 name1 12 aj,oj 2 name2 11 fin,katt 阅读全文
posted @ 2021-11-01 10:32 bingo彬哥 阅读(745) 评论(0) 推荐(0) 编辑

本站总访问量8982429
点击右上角即可分享
微信分享提示