Our csv input file contains account informations. We have an account number, and we have a value for each month of the first quarter.
We can define a CsvSource to read the data from this csv file using a classic object.
The parsing of the csv file is based on the CsvHelper by JoshClose. We can use attributes from the CsvHelper to control the parsing. In this case, we want to use better names for the months.
Next we define our output type, which is a pivoted view of our input. So for each account number, we want to have the month name together with the monthly value.
This is the content of the newly created output file. As we set the property HasHeaderReader of the CsvConfiguration to false, the header row is omitted.