While writing data into a csv from spark dataframe . I want to remove " quotes only from numeric data .
Actual Output:
+-------+---------+-----+
|user_id|course |marks|
+-------+---------+-----+
| "1"| "eng"| "9"|
| "1"| "french"| "7"|
+-------+---------+-- ---+
Expected Output
+-------+---------+-----+
|user_id|course |marks|
+-------+---------+-----+
| 1| "eng"| 9|
| 1| "french"| 7|
+-------+---------+-----+