How can I extract columns of data from a CSV file and define them as x and y variables, then plot them in python using pylab?
===

I've got a CSV file with data such as

    350, -0.042447984
    349, -0.041671798
    348, -0.04158416
    347, -0.041811798
    346, -0.041716855

Though I've got a lot more data. What I am trying to do is have the first column (350, 349, etc.) be defined as my x-values, and the second column (-0.042447984, -0.041671798, etc.) be defined as my y-values. This is my code so far:

    import pylab
    x=[350, 349, 348, 347, 346]
    y=[-0.042447984, -0.041671798, -0.04158416, -0.041811798, -0.041716855]
    pylab.plot(x, y)
    pylab.show()

However, instead of manually entering the numbers I'm trying to write a program that will extract column 1 from my CSV file as the x-values and column 2 as the y-values. It's probably something much simpler than I'm trying to make it. I'm new at python, so bare with me!
 