Re: [Tutor] array manipulations

2009-06-04 Thread Alan Gauld
"NTB" wrote array [['Food 1', 'Nutrient 1', 0.9], ['Food 1', 'Nutrient 2', 0.2], ['Food 2', 'Nutrient 1', 0.55], ['Food 2', 'Nutrient 2', 0.11]] into a new array that looks like this: array [['Food 1', 0.9, 0.2], ['Food 2', 0.55, 0.11]] I'd proba

Re: [Tutor] array manipulations

2009-06-03 Thread Lie Ryan
NTB wrote: > Hello, > I'm an R user, who just started with numpy. I'm planning on setting up > a large nutrient database. Here's my question: > > I'm trying to reshape? or manipulate? the following array: > > array [['Food 1', 'Nutrient 1', 0.9], > ['Food 1', 'Nutrient 2', 0.2],

[Tutor] array manipulations

2009-06-03 Thread NTB
Hello, I'm an R user, who just started with numpy. I'm planning on setting up a large nutrient database. Here's my question: I'm trying to reshape? or manipulate? the following array: array [['Food 1', 'Nutrient 1', 0.9], ['Food 1', 'Nutrient 2', 0.2], ['Food 2', 'Nutr