add row and column in numpy 2D arra code example Example: python append row to 2d array new_row.append([])