Dear community, I am having the following problem when I am assigning the
elements of a vector below a certain number to zero or any other value.
I am creating a new variable but Python edits the root variable. Why?
import numpy as np
X=np.arange(1, 1, 1) #root variable
x1=X
x1[x1<1]=0
Em quinta-feira, 21 de dezembro de 2017 16:21:57 UTC+1, Neil Cerutti escreveu:
> On 2017-12-21, rafaeltfre...@gmail.com wrote:
> > Dear community, I am having the following problem when I am
> > assigning the elements of a vector below a certain number to
> > zero or any other value. I am creatin