CSV написать без новой линии
with open('output.csv', 'w', newline='', encoding='utf-8') as f:
writer = csv.writer(f)
...
Concerned Cow
with open('output.csv', 'w', newline='', encoding='utf-8') as f:
writer = csv.writer(f)
...