Updated version with only columns for mean and std