DA10. 统计牛客网刷题数量500以上的大佬
描述
Python 3 解法, 执行用时: 777ms, 内存消耗: 524288KB, 提交时间: 2022-07-26
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv',sep=',') print(Nowcoder[Nowcoder.Num_of_exercise>=500][['Level','Achievement_value']])
Python 3 解法, 执行用时: 777ms, 内存消耗: 524288KB, 提交时间: 2022-07-26
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv',sep=',') print(Nowcoder[Nowcoder.Num_of_exercise>=500][['Level', 'Achievement_value']])
Python 3 解法, 执行用时: 783ms, 内存消耗: 524288KB, 提交时间: 2022-07-08
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv',sep=',') print(Nowcoder[['Level','Achievement_value']][Nowcoder['Num_of_exercise']>=500])
Python 3 解法, 执行用时: 786ms, 内存消耗: 524288KB, 提交时间: 2022-07-26
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv',sep=',') print(Nowcoder[Nowcoder["Num_of_exercise"]>=500][['Level','Achievement_value']])
Python 3 解法, 执行用时: 789ms, 内存消耗: 524288KB, 提交时间: 2022-07-18
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv',sep=',') print(Nowcoder.loc[Nowcoder['Num_of_exercise']>500, ['Level', 'Achievement_value']])