DA1. 用pandas查看牛客网用户数据
描述
Python 3 解法, 执行用时: 789ms, 内存消耗: 524288KB, 提交时间: 2022-07-27
import pandas as pd Nowcoder=pd.read_csv("Nowcoder.csv",sep=",",dtype=object) print(Nowcoder[1:6]) import numpy as np df1=np.read_csv('Nowcoder.csv') print(Nowcoder[1:6,:])
Python 3 解法, 执行用时: 792ms, 内存消耗: 524288KB, 提交时间: 2022-07-14
import pandas as pd # Nowcoder = pd.read_csv('Nowcoder.csv',sep=',',dtype=object,nrows=5) # print(Nowcoder) Nowcoder = pd.read_csv('Nowcoder.csv',sep=',',dtype=object) print(Nowcoder.head(5))
Python 3 解法, 执行用时: 793ms, 内存消耗: 524288KB, 提交时间: 2022-07-15
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv',sep=',',dtype=object) print(Nowcoder[0:6])
Python 3 解法, 执行用时: 795ms, 内存消耗: 524288KB, 提交时间: 2022-07-23
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv',sep=',',dtype=object,nrows=6) print(Nowcoder.head(6))
Python 3 解法, 执行用时: 796ms, 内存消耗: 524288KB, 提交时间: 2022-07-11
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv',sep=',',dtype=object) print(Nowcoder.loc[:5])