I am looking for replacing zones in array, for example I create an array b = numpy.zeros((12,12)). And I want to change its values with a=numpy.aray([[1,2],[2,3]]) in the left upper corner indexed by [0:1,0:1].
When I specify b[0:1,0:1] = a I have an error:
"ValueError: output operand requires a reduction, but reduction is not enabled".
What’s the method to do such thing ?
Thanks
Use correct indices:
From the docs: