09 2021 档案

摘要:4个分位数的取法: df1 = spark.createDataFrame([(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9),(1,10),(2,1),(2,10),(2,100)],['id','cnt']) cnt_med_1 = F. 阅读全文
posted @ 2021-09-24 13:44 muyue123 阅读(319) 评论(0) 推荐(0) 编辑
摘要:select id,cnt,sum(cnt) over w as sum_cntfrom( select 'a' as id, 1 as cnt union all select 'a' as id, 9 as cnt union all select 'a' as id, 4 as cnt uni 阅读全文
posted @ 2021-09-02 15:07 muyue123 阅读(97) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示