This is what I currently have:
import numpy as np
data = [0.2, 0.6, 0.3, 0.5]
vecs = np.reshape([np.arange(len(data)),data], (2, -1)).transpose()
vecs
array([[ 0. , 0.2],
[ 1. , 0.6],
[ 2. , 0.3],
[ 3. , 0.5]])
This gives me the correct data as I want it, but it seems complex. Am I missing a trick?
np.stack
instead of reshaping and transposing?