pandas 生成excel 和 csv

import pandas as pd a = ['a','b','c'] b = [1,2,3] dit = {'char':a, 'num':b} file_path = r'./output.xlsx' writer = pd.ExcelWriter(file_path) df = pd.DataFrame(dit) #columns參數用於指定生成的excel中列的順序 df.to_exc
相關文章
相關標籤/搜索