apache spark scala 中的数据帧转换(数据准备)

Dataframe transformation (data preparation) in apache spark scala

多亏了 ,我从这个输入中得到了管理:

获取累加器输出。

现在我正在尝试获取以下内容:

获得以下 table 的最佳方法是什么?

答案是在 spark.

中使用函数 explode