Re: [Numpy-discussion] Problem with Numpy and array

2011-05-12 Thread Claudia Chan Yone
Merci beaucoup beaucoup!! 2011/5/12 Éric Depagne > Le jeudi 12 mai 2011 12:21:46, Claudia Chan Yone a écrit : > > Hi, > > > > I have a problem with the Numpy module, but I think it is a very basic > > issue for many of you... > > I have a file with numerical data (2 columns, and 5 lignes) as : >

Re: [Numpy-discussion] Problem with Numpy and array

2011-05-12 Thread Éric Depagne
Le jeudi 12 mai 2011 12:21:46, Claudia Chan Yone a écrit : > Hi, > > I have a problem with the Numpy module, but I think it is a very basic > issue for many of you... > I have a file with numerical data (2 columns, and 5 lignes) as : > 1 2 > 3 4 > ... ... > > And I woulid like to convert it in a

Re: [Numpy-discussion] Problem with Numpy and array

2011-05-12 Thread Youngung Jeong
Sorry you don't have to transpose the matrix... Youngung Jeong On Thu, May 12, 2011 at 7:30 PM, Youngung Jeong wrote: > Hello, > > Use np.loadtxt > > >>> a = np.loadtxt(filename) ##in case no rows to skip. > >>> a = a.transpose() ##in your case, I guess you should > tra

Re: [Numpy-discussion] Problem with Numpy and array

2011-05-12 Thread Youngung Jeong
Hello, Use np.loadtxt >>> a = np.loadtxt(filename) ##in case no rows to skip. >>> a = a.transpose() ##in your case, I guess you should transpose it.. Youngung Jeong On Thu, May 12, 2011 at 7:21 PM, Claudia Chan Yone < chanyone.clau...@gmail.com> wrote: > Hi, > > I ha

Re: [Numpy-discussion] Problem with Numpy and array

2011-05-12 Thread Miguel de Val-Borro
On Thu, May 12, 2011 at 12:21:46PM +0200, Claudia Chan Yone wrote: > Hi, > > I have a problem with the Numpy module, but I think it is a very basic issue > for many of you... > I have a file with numerical data (2 columns, and 5 lignes) as : > 1 2 > 3 4 > ... ... > > And I woulid like to convert

[Numpy-discussion] Problem with Numpy and array

2011-05-12 Thread Claudia Chan Yone
Hi, I have a problem with the Numpy module, but I think it is a very basic issue for many of you... I have a file with numerical data (2 columns, and 5 lignes) as : 1 2 3 4 ... ... And I woulid like to convert it in a matrix as : [[1,2] [3,4] ...] My python script is : fic=open('file.txt','r')