Action to pivot data in a CSV file to group data by values in one column and summarize other columns