df=result1[['StoreID', 'BatchID', 'Quantity', 'ProductID']]
writer = pd.ExcelWriter('pandas_simple.xlsx', engine='xlsxwriter')
# Convert the dataframe to an XlsxWriter Excel object.
df.to_excel(writer, sheet_name='Sheet1')
# Close the Pandas Excel writer and output the Excel file.
writer.save()
相关问题 更多 >
编程相关推荐