摘要: # -*- coding: utf-8 -*- #1, read_table()读取txt文件 from pandas import read_table df=read_table(r'D:\rz.txt',sep=" ") '''查看前3条数据,默认是5条''' print(df.head(3)) #2, read_csv()读取csv文件 from pandas import read_cs 阅读全文
posted @ 2019-12-04 10:17 最萌小胡胡 阅读(3633) 评论(0) 推荐(0) 编辑