nit. renaming i instead of v, as it is not the index but the value you are aggregating.