Pnls = _data.csv".format(df_name),"a") as outfile: The following is a sample script that gets the data for a small list of symbols: from pandas_datareader import data as dreader You can pip install it or install it any other way you prefer. ![]() You can use the pandas_datareader module to download the data that you want if it is available on yahoo. Also the dataframe seems the most efficient way to organize the data but I am no quite for sure, but I want to do machine learning, and data analysis. I want to be able to permanently store all this data so for example if I load 30 years of price history today for 100 ticker symbols, then tomorrow I will only have to append one day of data not all 30 years. #This represents the start and end date for the dataį = web.DataReader(ticker, 'yahoo', start, end) My Problem is that my variable ticker will not work, and even if it did work how can I store this data? import csv ![]() ![]() I want the Open, High, Low, Close, Adj Close, Volume loaded into individual DataFrames (pandas) with name of the data frame named as the current ticker. I will have a 100+ ticker symbols and I will be downloading data from 1985 to current date. I am currently seeking a way to load multiple years of stock price history from yahoo finance.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |