0
pandas.DataFrame.to_excel
文檔說列可選列要寫入,但我錯了,特定列(例如列J)應如何定義?在Pandas的特定列寫入數組to_excel
import pandas as pd
my_array = [0 for i in range(len(data))]
pd_array = pd.DataFrame(my_array)
pd_array.to_excel(r'C:\Users\my_dir\SandBox.xlsx', sheet_name='Sheet2', columns = 8)