题解 | #用pandas查看牛客网用户数据#
用pandas查看牛客网用户数据
https://www.nowcoder.com/practice/1bde0d7c2c7243a2853b4493494b4bfd
- 直接调用参数nrows 输出前6行
- 还可以利用参数skiprows 跳过任意行
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv',sep=',',dtype=object,nrows=6) print(Nowcoder)