Build output .csv with correct columns

However, only values are ‘NaN’ and ‘False’