[Numpy-discussion] setting element

Charles سمير Doutriaux doutriaux1@llnl....
Wed Nov 12 11:43:34 CST 2008


Hello,

I'm wondering if there's aquick way to do the following:

s[:,5]=value

in a "general" function
def setval(array,index,value,axis=0):
	## code here

The issue is to put enough ":" before the index value inside the  
square bracket of the assignement.

Thanks,

C.



More information about the Numpy-discussion mailing list