for some reason I can't append data to a numpy string.
for b in range(len(aUnique)):
temp = aUnique[b]
print(temp)
numpy.append(sGewiss, temp)
#RawData.cell(row=b+1, column=1).value = temp
print(sGewiss)
When I print "temp" I can see the right values so the loop is working correctly but when I print the array "sGewiss" I cannot see the new values added but only the old [66830 72312 72812].
Am I using the parameters wrong? Is there a dimension issue I am not aware of?
Thank you
I tried to add around 100 numbers to my array "sGweiss" which contains only 3 values. I was expecting an array containing the starting 3 elements plus the new 100 elements
appendmethod does not work "in-place" on the array that you pass it, i.e., it will not changesGewissbut will instead return a new array that issGewissappended withtemp. You therefore have to store the return value, e.g.,sGewiss = np.append(sGewiss, temp).