yfinance icon indicating copy to clipboard operation
yfinance copied to clipboard

Fix default value for multi_level_index in multi.py

Open dhruvan2006 opened this issue 1 year ago • 3 comments

Fix the default value for the multi_level_index parameter in the download function. Was changed from True to False to reflect expected behavior.

Resolves #2101

dhruvan2006 avatar Oct 26 '24 19:10 dhruvan2006

~But True is still broken, it should still contain a DatetimeIndex.~

ValueRaider avatar Oct 26 '24 20:10 ValueRaider

But isn't the index Date column still a DatetimeIndex?

dhruvan2006 avatar Oct 26 '24 20:10 dhruvan2006

You're right. I was going purely off the screenshot showing integer index.

ValueRaider avatar Oct 27 '24 12:10 ValueRaider

It seems raising awareness of Ticker.history solves this. Use download in pipelines that expect multiple tickers.

ValueRaider avatar Nov 23 '24 12:11 ValueRaider