题解 | 大佬用户成就值比例
import pandas as pd data = pd.read_csv('Nowcoder.csv') sum_ach = data['Achievement_value'].sum() print(data[data['Level'] == 7]['Achievement_value'].div(sum_ach))
import pandas as pd data = pd.read_csv('Nowcoder.csv') sum_ach = data['Achievement_value'].sum() print(data[data['Level'] == 7]['Achievement_value'].div(sum_ach))
相关推荐