题解 | #牛客网用户最高的正确率#
牛客网用户最高的正确率
https://www.nowcoder.com/practice/c9a273dc3e7546b0bdb8fe83fa2e5b74
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') nowcoder=Nowcoder[Nowcoder['Num_of_exercise']>=10][['Num_of_exercise','Number_of_submissions']]#筛选出刷题量不低于10的用户信息 nowcoder['success_rate']=nowcoder['Num_of_exercise']/nowcoder['Number_of_submissions']#计算出每个用户的正确率 print(round(nowcoder['success_rate'].max(),3))#计算出最大的成功率,取3位小数