append arrays of array python code example
Example 1: append element to an array python
x = ['Red', 'Blue']
x.append('Yellow')
Example 2: np.append
>>> np.append([1, 2, 3], [[4, 5, 6], [7, 8, 9]])
array([1, 2, 3, ..., 7, 8, 9])
x = ['Red', 'Blue']
x.append('Yellow')
>>> np.append([1, 2, 3], [[4, 5, 6], [7, 8, 9]])
array([1, 2, 3, ..., 7, 8, 9])