I have a column that was extracted using Pandas. The following column may contain one dictionary or more than one dictionary.
Column B |
---|
[{'url': 'mailto:Kim_Do@dmx.com', 'type': 0, 'id': 1021857, 'name': 'KIM Do', 'entryListId': -1}, {'url': 'mailto:Angel_Kong@dmx.com', 'type': 0, 'id': 1023306, 'name': 'Angel Kong', 'entryListId': -1}, {'url': 'mailto:Alex_Do@dmx.com', 'type': 0, 'id': 1023289, 'name': 'Alex Do', 'entryListId': -1} |
[{'url': 'mailto:Ray_Chan@dmx.com', 'type': 0, 'id': 1021857, 'name': 'Ray Chan', 'entryListId': -1}, {'url': 'mailto:Paul_Jones@dmx.com', 'type': 0, 'id': 1023306, 'name': 'Paul Jones, 'entryListId': -1}] |
nan |
nan |
[{'url': 'mailto:Ray_Chaudhry@dmx.com', 'type': 0, 'id': 1021857, 'name': 'Ray Chaudhry', 'entryListId': -1}] |
What I want back is just the names from the dictionary. So, the output should be as follows:
Column B |
---|
Kim Do, Angel Kong, Alex Do, Fred Tome |
Ray Chan, Paul Jones |
nan |
nan |
Ray Chaudhry |
How can I achieve this. Thank you!