DA8. 文件最后用户的部分数据
描述
Python 3 解法, 执行用时: 780ms, 内存消耗: 524288KB, 提交时间: 2022-07-20
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') #print(Nowcoder[['Nowcoder_ID','Level','Achievement_value','Language']][len(owcoder)-5:]) print(Nowcoder[['Nowcoder_ID','Level','Achievement_value','Language']].tail(5))
Python 3 解法, 执行用时: 798ms, 内存消耗: 524288KB, 提交时间: 2022-07-27
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') print(Nowcoder.iloc[-5:,[0,1,2,5]])
Python 3 解法, 执行用时: 800ms, 内存消耗: 524288KB, 提交时间: 2022-07-26
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') print(Nowcoder.iloc[-5:,[0,1,2,5]])
Python 3 解法, 执行用时: 800ms, 内存消耗: 524288KB, 提交时间: 2022-07-26
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') print(Nowcoder[['Nowcoder_ID','Level','Achievement_value','Language']]).tail(5)
Python 3 解法, 执行用时: 802ms, 内存消耗: 524288KB, 提交时间: 2022-07-24
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') print(Nowcoder[['Nowcoder_ID','Level','Achievement_value','Language']].head(-5))