Answers for "'numpy.ndarray' object has no attribute 'append'"

3

'numpy.ndarray' object has no attribute 'append'

#instead of name_array.append(number) use numpy.append(name_array, number)
#insted of:
a = [1,2,3,4]
a.append(5)
#use:
a = [1,2,3,4]
numpy.append(a, 5)
Posted by: Guest on January-12-2021

Code answers related to "'numpy.ndarray' object has no attribute 'append'"

Python Answers by Framework

Browse Popular Code Answers by Language