write csv of data formats df