my problem is that I have a csv file which happened to a dictionary. At the moment I want to pass this dictionary to a new csv file, the information is written but leaving a blank row, that is:
Instead of being like this:
'example 1': 'hello', 'example 2': 'hello2 ...
'example 3': 'hello', 'example 3': 'hello3 ...
looks like this:
'example 1': 'hello', 'example 2': 'hello2 ...
'example 1': 'hello', 'example 2': 'hello2 ...
I'm interested in erasing that blank line, the code I use for the writing part is:
with open('datos_biblioteca.csv','a') as f:
w = csv.writer(f)
w.writerows(dic_escritura.items())
thanks.