Whereas i need an output as show below. Any suggestions on the fastest method, without using loop?
in_column out_column
0 5 1
1 5 2
2 5 3
3 8 1
4 13 1
5 13 2
6 13 3
7 13 4
8 13 5