我正在运行此代码以获取股票列表的股票数据并出现错误
import yfinance as yf
start = datetime.datetime(2018,5,1)
end = datetime.datetime(2020,8,31)
yfdata = yf.download(stocks, start = start, end = end)
print(yfdata.head(5))
我们得到的错误是:" tickers, (list, set, tuple)) else tickers.replace(',', ' ').split()
AttributeError: 'numpy.ndarray' 对象没有属性 'replace'"
有任何想法吗?