This is dataframe i created from json file in spark (scala)
| A | B | C |
| 1 | a | x |
| 2 | b | x |
now i want the following result as my final result,
| A | B | C | D |
| 1 | a | x | 1ax |
| 2 | b | y | 2bx | where ABC and ABCD is a header of json dataset, 1 and 2 are data in that heard respectively . and i want to join or concatenate to get header D with data as 1ax and 2by. any help ??