Create an output CSV file

Each row represents a day.
There is a column for each event type.