I have a 2d array that looks like this:
XX xx
What\'s the most efficient way to add an extra row and column:
xxy xxy yyy >
maybe you need this.
>>> x = np.array([11,22]) >>> y = np.array([18,7,6]) >>> z = np.array([1,3,5]) >>> np.concatenate((x,y,z)) array([11, 22, 18, 7, 6, 1, 3, 5])