On 10/3/11 5:21 AM, Vince wrote:
Hi all,

I've been attempting to plot some data from a CSV file (two columns)
in SAGE and I've completely failed. Is there a nice tutorial on line
somewhere? If not could anyone perhaps point me to a good starting
point (I've been unable to import the data in to SAGE).

Here's some pointers about importing CSV into python:


http://docs.python.org/library/csv.html

For example:

data=[]
import csv
with open('some.csv', 'rb') as f:
    reader = csv.reader(f)
    for row in reader:
        data.append([row[0],row[1]])
line(data)

Thanks,

Jason


--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to