文章预览
Python编程中,如何将相关数据导出为excel格式呢? import numpy as np import matplotlib.pyplot as plt import pandas as pd image = np.load("./pems03-RM20-time-have1.npy") for i in range(0, 91): date1 = image[:, :, i] df = pd.DataFrame(date1) # 导出到Excel文件 strfiletmp = './excel/output'+str(i+1)+'.xlsx' df.to_excel(strfiletmp, index=False, engine= 'openpyxl' )
………………………………