I have a one dimensional numpy array, for example looking like :
[500.774994, 2837.050049, 492.190002, 2840.379883, 475.800018, 2828.725098]
Assuming the size of the array is a multiple of 2, how could i convert it into an array of pairs of the following shape ?
[(500.774994, 2837.050049), (492.190002, 2840.379883), (475.800018, 2828.725098)]
or
[[500.774994, 2837.050049], [492.190002, 2840.379883], [475.800018, 2828.725098]]