"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
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],
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