我的数据如下所示:
我想计算每个 id 重复次数的平均值,即对于 id=1 我们有 2a 1b 3c 我希望输出为 2。结果应该是这样的:
r data-science
data-science ×1
r ×1