group data by month/year value; Calculate average for each month