I am currently use the below-provided code to copy the CSV files from a folder to another and remove the second row of the CSV file present in it.
The above code removes the second row, i.e., row 1, from all the CSV files, but at the same time, it adds an empty row after each row in all the CSV files.
Example - Actual CSV:
| row_no | name | test |
| | | |
| | | input |
-------------------------
| 0 | abc | 123 |
| 1 | def | 456 |
| 2 | ghi | 789 |
| 3 | jkl | 101 |
After applying code:
| row_no | name | test |
| | | |
| | | input |
-------------------------
| 0 | abc | 123 |
| | | |
| 2 | ghi | 789 |
| | | |
| 3 | jkl | 101 |
Question 1: How do I remove the empty rows?
Question 2: I would like to remove the empty spaces in the column names;
Column Example:
| test |
| | -> |testinput|
| input |
Thanks