this is the code i write by C#
varndarrya=np.array(newdouble[]{10,20,30,40,50,60,70,80,90,100});varconditions=newNDarray<bool>[2];conditions[0]=ndarrya<=30;conditions[1]=(ndarrya>50)&(ndarrya<=100);varchoiselist=newNDarray<float>[2];choiselist[0]=np.array(newfloat[]{10});choiselist[1]=np.array(newfloat[]{20});vardes=np.select(conditions,choiselist,0);there is an error in the following line
conditions[1] = (ndarrya > 50)&(ndarrya <= 100);
Visual studio warn that 'the operation & can not be userd between NDarray[bool]
I just want to know how to write the Multiple Conditions
wish for you reply
this is the code i write by C#
there is an error in the following line
conditions[1] = (ndarrya > 50)&(ndarrya <= 100);
Visual studio warn that 'the operation & can not be userd between NDarray[bool]
I just want to know how to write the Multiple Conditions
wish for you reply