using DataFrames # csvファイル読み込み df = readtable("test.csv") # labelで集約,meanを適用 df_m = aggregate(df, :label, mean)