I am trying to pull stock data from yahoo and put it into a pandas dataframe. Below is what I wrote but I get an error of "No columns to parse from file". Can someone help?
import pandas as pd api = 'https://query1.finance.yahoo.com/v8/finance/chart/AAPL?interval=5m' df = pd.read_csv(api, skiprows=8, header=None)
Have an answer?