1A= [[1, 2, 3], [4, 5, 6]]
2np.append(A, [[7, 8, 9]], axis=0)
3
4 >> array([[1, 2, 3],
5 [4, 5, 6],
6 [7, 8, 9]])
7#or
8np.r_[A,[[7,8,9]]]
1>>> import numpy as np
2>>> np.append([[0, 1, 2], [3, 4, 5]],[[6, 7, 8]], axis=0)
3array([[0, 1, 2],
4 [3, 4, 5],
5 [6, 7, 8]])
1>>> np.append([1, 2, 3], [[4, 5, 6], [7, 8, 9]])
2array([1, 2, 3, ..., 7, 8, 9])
3
1// initialize array
2var arr = [
3 "Hi",
4 "Hello",
5 "Bonjour"
6];
7
8// append new value to the array
9arr.push("Hola");
10
11console.log(arr);