In Yfinance website, data download as csv option is not available, any alternative to download data

Course Name: [Getting Market Data: Stocks, Crypto, News]

In Yfinance website, data download as csv option is not available, can anyone suggest alternative to download ticker data in .csv and load into dataframe

Hi Mehar,

With Yfinance, you can directly download market data into your notebook and store it in a DataFrame.
If you prefer to work with a .csv file, you can save the downloaded DataFrame using:

df.to_csv(‘ticker_data.csv’)

Later, you can easily load it back into your notebook using:

df = pd.read_csv(‘ticker_data.csv’)

Thanks,
Mohak