【发布时间】:2019-04-12 10:54:14
【问题描述】:
我有以下数据集,我想对我的行进行多次重复并为它们分配索引。
提前致谢。感谢每一个建议:)
输入:
Col1 col2 col3 repetition
101 test1 10 2
102 test2 20 1
103 test3 30 2
104 test4 40 1
输出:
col1 col2 col3 index
101 test1 10 1
101 test1 10 2
102 test2 20 1
103 test3 30 1
103 test3 30 2
104 test4 40 1
【问题讨论】:
-
这是学校作业吗?
标签: java apache-spark apache-spark-sql