FinQuant
FinQuant copied to clipboard
'Index' object has no attribute 'tz_localize'
Hi there,
Tried to download the stock price from yfinance, used the code snippest in documentation.
from finquant.portfolio import build_portfolio names = ['GOOG', 'AMZN', 'MCD', 'DIS'] pf = build_portfolio(names=names, data_api="yfinance")
But once I run it, it says 'AttributeError: 'Index' object has no attribute 'tz_localize''
Thanks in advance.