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