I have a dictionary where I would like to map it to a large pandas dataframe. The issue is the column I would like to use to map is wrapped in double quotes and sometimes there are one or more items in that column.
original
dict_id = {
'College1': ['1256511'],
'College2': ['1200582'],
'College3': ['1256618'],
'College10': ['1256621']
}
id1 id2 college_name
0 01 01 "College1, College2"
1 01 02 "College10, College12"
2 01 03 "College19"
desired
id1 id2 college_name id_college
01 01 "College1, College2" 1256511, 1200582
01 02 "College10, College12" 1256621
01 03 "College19"