In Python how can I create and organized dictionary through the process of reading a CSV file
Question: I am attempting to read a CSV file into Python and create and organized
dictionary from the data retrieved. The CSV has a similar format to the one
shown below.

    
    
    Time  A   B   C   D
     0    1   2   4   5
    .1    3   3   5   7
    .2    4   5   7   9
    

When complete I would like the dictionary to look something like this Dict =
{'0':[1 2 3 4], '.1':[3 3 5 7], '.2':[4 5 7 9]}

The code below is all I can think to do up to this point. It is not giving me
the corret dictionary. I am new to python so any help I can get is greatly
appreciated!

    
    
    import csv
    counter = 0
    inp = open('Nodal_Quardnets.csv', 'rb')
    
    Xcoord = {}
    k = []
    v = []
    
    for line in inp.readlines():
        sd = line.strip().split(',')
    
        for value in range(len(sd)):
            if counter == 0:
                k.append(sd)
                counter = counter + 1
            else:
                v.append(sd)
    
        Xcoord = dict(zip(k,v))
    


Answer: 
    d = dict()
    with open('Nodal_Quardnets.csv', 'r') as f:
        f.readline()    # disregard headers
        for line in f:
            values = [s.strip() for s in line.split(',')]
            d[values[0]] = map(int,values[1:])   # convert list values to int
    print d
    

Output

    
    
    {'0': [1, 2, 4, 5],
     '.2': [4, 5, 7, 9],
     '.1': [3, 3, 5, 7]}
    

