[sage-support] CSV file I/O

2012-06-22 Thread Dan Aldrich
Trying to read in a .csv file into sagenb. data = list(csv.reader(file('C:/Documents and Settings/Dan/My Documents/Lab6.csv'))) Then I thought about using a file dialog instead: import csv import tkFileDialog filename = tkFileDialog.askopenfilename() csvfile = open(filename, rb) But that

[sage-support] CSV file

2012-02-24 Thread Chappman
Hi folks, I am having trouble trying to save a matrix P as a CSV file in Sage: Def function(A,D): (sage syntax for creating a matrix P) return P and then using a function which opens up the CSV file and utilizes the entires in the matrix P, from the CSV file. Is there a method for this?