how I display yfinancedata witout the Date


import yfinance as yf
data ='AAPL')

the result is

Date            Open
2022-06-09    36.849998

I want to remove the date can anyone help me please?



the point is that the data is returned as a dataframe. If you want to extract a value, then use values in square brackets to specify the index. Since the indexes in this dataframe are dates, you can also extract them, for example:


Answered By – inquirer

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published