How to pivot Spark DataFrame?

后端 未结 10 2109
闹比i
闹比i 2020-11-21 06:43

I am starting to use Spark DataFrames and I need to be able to pivot the data to create multiple columns out of 1 column with multiple rows. There is built in functionality

10条回答
  •  孤独总比滥情好
    2020-11-21 07:13

    A pivot operator has been added to the Spark dataframe API, and is part of Spark 1.6.

    See https://github.com/apache/spark/pull/7841 for details.

提交回复
热议问题