Re: How to use the method loadtxt() of numpy neatly?

2013-12-20 Thread Peter Otten
chao dong wrote: > HI, everybody. When I try to use numpy to deal with my dataset in the > style of csv, I face a little problem. > > In my dataset of the csv file, some columns are string that can not > convert to float easily. Some of them can ignore, but other columns I >

Re: How to use the method loadtxt() of numpy neatly?

2013-12-20 Thread rusi
On Friday, December 20, 2013 11:18:53 AM UTC+5:30, chao dong wrote: > HI, everybody. When I try to use numpy to deal with my dataset in the style > of csv, I face a little problem. > In my dataset of the csv file, some columns are string that can not > convert to float easily. Some of them c

How to use the method loadtxt() of numpy neatly?

2013-12-19 Thread chao dong
HI, everybody. When I try to use numpy to deal with my dataset in the style of csv, I face a little problem. In my dataset of the csv file, some columns are string that can not convert to float easily. Some of them can ignore, but other columns I need to change the data to a enum st