我想用 openpyxl 在 excel 文件中用 yfinance 写一个 Stock close read
import yfinance as yf
from openpyxl import load_workbook
import pandas as pd
data=yf.download('UCG.MI','2019-10-29','2019-10-30')
wb = load_workbook('path/Esempio.xlsx')
ws = wb['Sheet1']
x=data.iloc[[0],[3]]
ws['B3']=x
wb.save('path/Esempio.xlsx')
我有一个错误
'无法转换关闭'