I have below data in file.sec:

```
goog,100
goog,101
goog,103
micro,200
micro,201
face,99

```

I want to convert this data into a dictionary:
{'goog' : [100,101,103] , 'micro' : [200 , 201] , 'face' : [99]}

I tried below code, but it wipes out the list whenever value changes from goog to micro and result I get is: {'goog' : [99] , 'micro' : [99] , 'face':[99]}

```
allD = {}
allN = []
f = open('file.sec' , 'r')
for data in f:
   com = data.split(',')[0]

   if com not in allD.keys():
      del allN[:]

   allN.append( data.split(',')[1] )

   allD[ com ] = allN  

 print allD        

```