DA34. 牛客网不同毕业年份的大佬
描述
Python 3 解法, 执行用时: 787ms, 内存消耗: 524288KB, 提交时间: 2022-07-25
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') max_num = Nowcoder.groupby(by=['Graduate_year'])['Achievement_value'].max() print(max_num)
Python 3 解法, 执行用时: 788ms, 内存消耗: 524288KB, 提交时间: 2022-07-22
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') print(Nowcoder.groupby(by='Graduate_year')['Achievement_value'].max())
Python 3 解法, 执行用时: 803ms, 内存消耗: 524288KB, 提交时间: 2022-07-25
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') print(Nowcoder.groupby('Graduate_year')['Achievement_value'].max())
Python 3 解法, 执行用时: 808ms, 内存消耗: 524288KB, 提交时间: 2022-07-25
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') graduate_num = Nowcoder.groupby('Graduate_year')['Achievement_value'].max() print(graduate_num)
Python 3 解法, 执行用时: 812ms, 内存消耗: 524288KB, 提交时间: 2022-07-26
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') graduate_num = Nowcoder.groupby('Graduate_year')['Achievement_value'].max() print(graduate_num)