Csv parsing and averages