how to import data by yfinance of 5 year for the ex… (January 2nd 2015 to April 30th 2020 for questions 1 to 4. )
Hi Vikas, you can do it by importing the yfinance library. Let suppose say you want to download the data for Bank of America, the ticker for it is "BAC". After you import the library as yf, you can download the data as below
data_df = yf.download("BAC", start="2015-01-02", end="2020-04-30")
P.S. If the yfinance library is not already installed, you can do it by running the below command in a jupyter notebook cell:
!pip install yfinance