I think you probably have to leftjoin(monthly, climatology, on = :month, makeunique = true) first and then subtract the two columns in the joined DataFrame, then possible group again by month (I’m not 100% sure what you would expect that last line to do)