I have got a data-frame with the following values:
Location ID
DS 12973
DS 12955
DS 12947
St. paul 12949
Bakersfield 12097
Vernon 12905
vernon 12096
vernon 12902
and so on
I want to convert it into a dictionary in the following way, can anyone please help:
{
'DS':[12973, 12955, 12947]
'St.Paul':[12949, 12955]
'Bakersfield, CA': [ 12097]
'Vernon': [12905, 12906, 12902, 12927, 12900, 12915]
}