题解 | #用pandas查看牛客网用户数据#
用pandas查看牛客网用户数据
https://www.nowcoder.com/practice/1bde0d7c2c7243a2853b4493494b4bfd
import pandas as pd nowcoder = pd.read_csv("Nowcoder.csv", sep = ',', dtype=object) print(nowcoder.head(n = 6))
或者:
import pandas as pd nowcoder = pd.read_csv("Nowcoder.csv", sep = ',', dtype=object, nrow = 6) print(nowcoder)