对于某dataframe类型数据df,其数据列有id1,data1,data2,如果按照id1进行分组,求解在data1上的平均值,可以写为grouped = df['data1'].groupby(df['id1'])。
A、正确
B、错误