You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by amin mohebbi <am...@yahoo.com.INVALID> on 2018/07/10 12:26:59 UTC

Unpivoting

Does anyone know how to transpose the columns in Spark -scala ? 
This is how I want to unpivot the table  :
How to unpivot the table based on the multiple columns


| 
| 
| 
|  |  |

 |

 |
| 
|  | 
How to unpivot the table based on the multiple columns

I am using Scala and Spark to unpivot a table which looks like as below: +---+----------+-----+---------+-----...
 |

 |

 |