题解 | #大佬用户成就值比例#
大佬用户成就值比例
https://www.nowcoder.com/practice/8c0a2d9e77fe45f7b7316226ae213115
找出7级大佬->直接输出成就值->再除以全部成就值综合->Victor
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') print(Nowcoder[Nowcoder['Level'] == 7].Achievement_value/Nowcoder.Achievement_value.sum()) # print(Nowcoder[Nowcoder['Level'] == 7].Achievement_value.apply(lambda x:x/Nowcoder['Achievement_value'].sum()))