Clean data and compute mean per day