Insert Numpy Array Into Dataframe Group By Mean In R