Yahoo API into Pandas Dataframe

2441 views pandas

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 = '' 
df = pd.read_csv(api, skiprows=8, header=None)

answered question

1 Answer


I think yahoo finance already shutdown api service to prevent data abuse ,a valid token is required to initiate data transfer,you need to exlplore other services provider like alpha vantage as alternative

posted this

Have an answer?


Please login first before posting an answer.