摘要: import pandas as pd #写入 list = [[1, 2, 3], [4, 5, 6], [7, 9, 9]] name = ['one', 'two', 'three'] test = pd.DataFrame(columns=name, data=list) # 数据有三列,列 阅读全文
posted @ 2020-11-26 15:56 hifalee 阅读(115) 评论(0) 推荐(0) 编辑
摘要: csv.read with open("test.csv", "r", encoding = "utf-8") as f: reader = csv.reader(f) rows = [row for row in reader] csv.write with open(file, 'w', new 阅读全文
posted @ 2020-11-26 11:27 hifalee 阅读(312) 评论(0) 推荐(0) 编辑