Hey, thank you for the amazing package!
I am having a workspace error.
I have only 22 assets included and I have enough memory, so I do not see the problem? I used the program for other asset classes
assets = ['NVO', 'TMO', 'BMY', 'ZTS', 'DXCM', 'ILMN', 'LZAGY', 'CHGCY', 'WXXWY',
'A', 'VRTX', 'BIIB', 'GMAB','CRL', 'VTRS', 'EXAS', 'NVCR', 'TEVA', 'NTLA',
'ZLAB', 'JAZZ', 'EVO', 'NBIX', 'CRSP', 'TLRY','PRGO', 'HCM', 'RGEDF', 'FATE', 'NEO']
yahoo_financials = YahooFinancials(assets)
data = yahoo_financials.get_historical_price_data(start_date='2020-01-01',
end_date='2020-12-31',
time_interval='daily')
df = pd.DataFrame({
a: {x['formatted_date']: x['adjclose'] for x in data[a]['prices']} for a in assets})
df.fillna(method='ffill',inplace=True)
Hey, thank you for the amazing package! I am having a workspace error. I have only 22 assets included and I have enough memory, so I do not see the problem? I used the program for other asset classes assets = ['NVO', 'TMO', 'BMY', 'ZTS', 'DXCM', 'ILMN', 'LZAGY', 'CHGCY', 'WXXWY', 'A', 'VRTX', 'BIIB', 'GMAB','CRL', 'VTRS', 'EXAS', 'NVCR', 'TEVA', 'NTLA', 'ZLAB', 'JAZZ', 'EVO', 'NBIX', 'CRSP', 'TLRY','PRGO', 'HCM', 'RGEDF', 'FATE', 'NEO'] yahoo_financials = YahooFinancials(assets) data = yahoo_financials.get_historical_price_data(start_date='2020-01-01', end_date='2020-12-31', time_interval='daily') df = pd.DataFrame({ a: {x['formatted_date']: x['adjclose'] for x in data[a]['prices']} for a in assets}) df.fillna(method='ffill',inplace=True)![image](https://user-images.githubusercontent.com/94294184/160863080-8ffe9252-1d78-46dc-8c63-4f9307961430.png)
Kind regards, Yana