'extract attributes from list

I am a novice in python and I treat to extract emotions from list and put each attribute to its corresponding series to train machine learning algorithms for example this one instance in list and I want put anger in new series with its value= 0.013736263736263736 and so on.

"{'anger':", '0.013736263736263736,', "'anticipation':", '0.0027472527472527475,', "'disgust':", '0.03296703296703297,', "'fear':", '0.0027472527472527475,', "'joy':", '0.0,', "'negative':", '0.06043956043956044,', "'positive':", '0.019230769230769232,', "'sadness':", '0.0027472527472527475,', "'surprise':", '0.008241758241758242,', "'trust':", '0.019230769230769232}'] thanks in advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source