摘要: 07 Spark RDD编程 综合实例 英文词频统计 >>> s = txt.lower().split()>>> dd = {}>>> for word in s:... if word not in dd:... dd[word] = 1... else:... dd[word] = dic[w 阅读全文
posted @ 2021-04-23 21:14 123wen 阅读(34) 评论(0) 推荐(0)
摘要: 06 RDD编程 学生课程分数案例 总共有多少学生?map(), distinct(), count() 开设了多少门课程? 每个学生选修了多少门课?map(), countByKey() 每门课程有多少个学生选?map(), countByValue() Tom选修了几门课?每门课多少分?filt 阅读全文
posted @ 2021-04-23 21:12 123wen 阅读(41) 评论(0) 推荐(0)