I am processing a large csv file. In that, for first 6 (n) rows needs to be modified.
For now, I am reading the csv in dataframe then running our process and the result I am exporting again in csv using df.to_csv(). Wherein, df is a dataframe object.
So, after reading the csv I'm getting the row like
0
0 COMPANY NAME XYZ LTD.
1 Region c.
2 Here some header just to make readbale for user..
0
After this, I am appending this dataframe on top of other one and then extracting into csv. But, the issue is now, that I want to add a BLANK ROW after every row in above dataframe.
Expected output for above given example
0
0 COMPANY NAME XYZ LTD.
1
2 Region c.
3
4 Here some header just to make readbale for user..
5
0
Note: The number of rows in dataframe may very so let's say we need to add blank row after every row for all n rows and then append to other df and export it to csv.
Thank you all in advance for helping me.