Answer the question
In order to leave comments, you need to log in
How to work with add, multiply functions to merge numpy arrays?
Can you tell me why these code options do not work?
Option 1
dl = []
i = 0
while i < 5:
dl.append('dict') # + str(i) - можно было и так, но хочется понять, как работает numpy
i+=1
print dl
x1 = np.arange(0,5)
x2 = np.asarray(x1,str)
x3 = np.add(dl1,x2)
print x3
dl = []
i = 0
while i < 5:
dl.append('dict') # + str(i)
i+=1
print dl
x1 = np.arange(0,5)
x2 = np.asarray(x1,str)
x3 = np.multiply(dl1,x1)
print x3
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question