I have pairs of numpys such as the follows:

```
prv_path = np.array([[1,2,3],
                     [1,2,1],
                     [3,1,2],
                     [4,4,4]])
new_path = np.array([[3,1],
                     [3,2],
                     [3,4],
                     [4,3]])

```

`prv_path`  represents the old path and `new_path`  represents the new path.
I want to connect them to **new numpy** so that the path will appear in full.
The connection should be through the last column in `prv_path`  and the first column in `new_path` 
I.e. in the example above the path should be:

```
[[1,2,3,1],
 [1,2,3,2],
 [1,2,3,4],
 [4,4,4,3]]

```

Explanation: The first line of `new_path` starts in point `3`, therefore it should be connected to the `prv_path` path ending in `3`. The same goes for the second and third rows. The fourth row of `new_path` begins with the letter `4` therefore it will be connected to the path ending with the letter `4`.

I do not want to connect them using for loops.
Is there an effective method to connect the two above?

Is there a way to do this without using pandas?