You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-5-f8b4eb90a3bd> in <module>
----> 1 df = qri.get('qri_weather_bot/earthquakes-test').body
~/datasets/notebooks/qri/dataset.py in body(self)
92 raise RuntimeError('Only csv body format is supported')
93 if self.body_component is None:
---> 94 df = loader.load_body(self.username, self.name, self.structure)
95 self.body_component = df
96 return self.body_component
~/datasets/notebooks/qri/loader.py in load_body(username, dsname, structure)
15 columns = [e for e in structure.schema['items']['items']]
16 col_names = [c['title'] for c in columns]
---> 17 types = {c['title']: pd_type(c['type']) for c in columns}
18 header = 0 if structure.format_config.get('headerRow') else None
19 df = None
~/datasets/notebooks/qri/loader.py in <dictcomp>(.0)
15 columns = [e for e in structure.schema['items']['items']]
16 col_names = [c['title'] for c in columns]
---> 17 types = {c['title']: pd_type(c['type']) for c in columns}
18 header = 0 if structure.format_config.get('headerRow') else None
19 df = None
KeyError: 'type'
What is your OS and version?
Linux Mint Cinnamon 20
What version of qri are you using (
qri version
)?0.9.11
Issue
Getting a KeyError when trying to get
qri_weather_bot/earthquakes-test
. I suspected it was a JSON, but it's a CSV.The text was updated successfully, but these errors were encountered: