FinQuant icon indicating copy to clipboard operation
FinQuant copied to clipboard

'Index' object has no attribute 'tz_localize'

Open Michael5531 opened this issue 4 years ago • 0 comments

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.

Michael5531 avatar Jan 28 '22 03:01 Michael5531