
python dataframe
wwwwengweng
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python dataframe 二 (数据处理一些常用的)
group by 相关的d1 为 dataframe type 的数据// get count value of group and the order is descending by the value of countd1.groupby(["ip"],as_index=False).count().sort_values(by=["id"],ascending=False)//re...原创 2020-04-03 11:27:52 · 158 阅读 · 0 评论 -
python dataframe (数据处理一些常用的)
1. 合并多个dataframed1、d2、d3、d4是dataframe// frames=[d1,d2,d3,d4]total=pd.concat(frames)2.选择在另一个dataframe的数据d5=total[d4["id"].isin(d3["id"])]3.针对dataframe的某一列去重、drop na,保留重复的第一个total1=total.drop_...原创 2020-04-02 22:38:55 · 206 阅读 · 0 评论