Re: Question about csv writer

2006-03-20 Thread Paul McGuire
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I expected the following code to work: > > f = file(fn,"wb") > writer = csv.writer(f) > for i in range(IMax): > writer.writerow([dates[i]].append([ReturnHistories[j][i] for j in > range(N)])) > > but instead i got the following erro

Question about csv writer

2006-03-20 Thread tkpmep
I expected the following code to work: f = file(fn,"wb") writer = csv.writer(f) for i in range(IMax): writer.writerow([dates[i]].append([ReturnHistories[j][i] for j in range(N)])) but instead i got the following error message: Error: sequence expected However, if i modify the code to read w