I have a few dfs looks like that:
A B C D
1 2 3 4
11 22 33 44
111 222 333 444
I tried to write they in csv file. I use:
with open(matchedLine + 'OUT', 'a') as f:
df.to_csv(f, header=False, index = False)
And in csv i got a empty row after each row. I mean:
1 2 3 4
11 22 33 44
etc
Why? How to delete that empty rows? What is wrong with my code?
.