最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

apache spark - transforming data to column header - Stack Overflow

programmeradmin2浏览0评论

Need an advise as I am new to spark.
I have a dataframe with the following content -

admission year | city | subject | class| average marks

A typical data sample would be as below -

2024 | Los Angeles | Physics | 7 |97
2024 | Chicago | Physics | 7 | 95

The output columns desired is as below -

    2024  Los Angeles Physics 7 | 2024  Chicago Physics 7 | .....
                             97 |                      95 | .....

Any suggestion on the most performant solution for this transformation will be appreciated.

发布评论

评论列表(0)

  1. 暂无评论