Write_csv

Write_csv edit: remove whitespaces and correct the \n