Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'No object named quandl/wiki/prices in the file' #315

Open
frederikplet opened this issue Jan 22, 2024 · 1 comment
Open

KeyError: 'No object named quandl/wiki/prices in the file' #315

frederikplet opened this issue Jan 22, 2024 · 1 comment

Comments

@frederikplet
Copy link

File c:\Users\frede\Downloads\trading_env.py:75, in DataSource.load_data(self)
73 idx = pd.IndexSlice
74 with pd.HDFStore('../data/assets.h5') as store:
---> 75 df = (store['quandl/wiki/prices']
76 .loc[idx[:, self.ticker],
77 ['adj_close', 'adj_volume', 'adj_low', 'adj_high']]
78 .dropna()
79 .sort_index())
80 df.columns = ['close', 'volume', 'low', 'high']
81 log.info('got data for {}...'.format(self.ticker))

File f:\miniconda3\envs\ml4t\lib\site-packages\pandas\io\pytables.py:596, in HDFStore.getitem(self, key)
595 def getitem(self, key: str):
--> 596 return self.get(key)

File f:\miniconda3\envs\ml4t\lib\site-packages\pandas\io\pytables.py:790, in HDFStore.get(self, key)
788 group = self.get_node(key)
789 if group is None:
--> 790 raise KeyError(f"No object named {key} in the file")
791 return self._read_group(group)

KeyError: 'No object named quandl/wiki/prices in the file'

I get this and there seem to be no quandl/wiki/prices in assets.h5. am i missing something or is this just a mistake?

@kingkong404
Copy link

I am also having the same issue.

'../data/assets.h5' seems to contain no keys / data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants