Commit eea1fa00 authored by 王志伟's avatar 王志伟

统计like项目

parent 61a9e180
...@@ -593,8 +593,8 @@ object alpha_ctr { ...@@ -593,8 +593,8 @@ object alpha_ctr {
) )
expoure_count_recommend.rdd.map(row =>{ expoure_count_recommend.rdd.map(row =>{
val s = row.getAs[List[String]]("exposure_cards") val s = row.getAs[List[String]]("exposure_cards")
println(s.length) (stat_date,s.length)
}) }).reduceByKey((x,y) => x + y).toDF("stat_date","count").show()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment