Re: [Tutor] genfromtxt vs. reading csv to a list or dictionary

2016-02-11 Thread Ek Esawi
Thanks Danny! I realized that I should not be concerned with speed/efficiency since I am a beginner in python and giving the data I work with, speed is not that important now. I am learning how to read files via several ways and transform them to numpy arrays. I just thought genfromtxt provides m

Re: [Tutor] genfromtxt vs. reading csv to a list or dictionary

2016-02-08 Thread Danny Yoo
> I normally need to convert csv and text files to a Numpy array. I tried to > do the same thing using (1) reader=DictReader(MyFile), (2) > reader=csv.readre(MyFile), or (3) genfromtxt (MyFile ,……). The first two > is after I open the file. They produce a list of lists, list of tuples or > list of

[Tutor] genfromtxt vs. reading csv to a list or dictionary

2016-02-08 Thread Ek Esawi
Hi all— I normally need to convert csv and text files to a Numpy array. I tried to do the same thing using (1) reader=DictReader(MyFile), (2) reader=csv.readre(MyFile), or (3) genfromtxt (MyFile ,……). The first two is after I open the file. They produce a list of lists, list of tuples or list o