'Add rows in a CSV using spark
I have a spark dataframe which looks like :
Finaltotal,Total,3683,3271.58,289659.5,5069340.0,4188153.83,3683,3271.58,289659.5,5069340.0,4188153.83
Finaltotal,Total,3683,3271.58,289659.5,5069340.0,4188153.83,3683,3271.58,289659.5,5069340.0,4188153.83
Finaltotal,Total,3683,3271.58,289659.5,5069340.0,4188153.83,3683,3271.58,289659.5,5069340.0,4188153.83
This is a CSV file and I need to add all rows corresponding to each column in this data frame and generated a final csv file. This file has a header but the header can contain duplicate column names.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
