- EasyDict
It allows to access dict values as attributes.
Very useful when exploiting parsed JSON content .
from easydict import EasyDict as edict
d = edict({'foo':3, 'bar':{'x':1, 'y':2}})
d.foo
>>>
3
d.bar.x
>>>
1
d = edict(foo=3)
d.foo
>>>
3
'Analyze Data > Python Libraries' 카테고리의 다른 글
numpy-pad (0) | 2023.12.26 |
---|---|
numpy-ogrid VS mgrid (0) | 2023.11.17 |
numpy-concatenate (0) | 2023.06.07 |
numpy-identity (0) | 2023.06.02 |
numpy-linspace, interp (0) | 2023.05.30 |