Open
Description
Brief Description
When the value of a key in a Series is of type dictionary, accessing the key in the following way raises an exception:
s['dictionary']
System Information
python 3.6
ubuntu 18.04LTS
Minimally Reproducible Code
x=pd.DataFrame({'dictionary':[{100: 1, 200: 2}]})
s = x.iloc[0]
s['dictionary']
when this works fine:
x=pd.DataFrame({'dictionary':[{100: 1, 200: 2}]})
s = x.iloc[0]
s.dictionary
Error Messages
~/anaconda3/lib/python3.6/site-packages/dovpanda/core.py in suggest_at_iat(res, arguments)
186 def suggest_at_iat(res, arguments):
187 self = arguments.get('self')
--> 188 shp = res.shape
189 if res.ndim < 1: # Sometimes specific slicing will return value
190 returnAttributeError: 'dict' object has no attribute 'shape'