ogo.util.write_csv module

Utility function for writing to a csv file

ogo.util.write_csv.write_csv(entry, csv_file, header, delimiter=', ')

Write data to a CSV file.

This function handles creating the CSV file if it doesn’‘t exist, appending to said file, and managing header formatting.

Note that if you want specific formatting on numerics - i.e. precision - the numerical value should be passed as a string and precision set before calling this function.