I have a numpy array x that looks like this:
In: x
Out:
array([[array([ 1.]), 0.0],
[array([-0.00770808]), array([ 0.90825723])],
[array([-0.0358526]), array([ 0.59267366])],
[array([ 0.0088844]), array([ 0.89480382])],
[array([ 0.0387529]), array([ 0.56483939])],
[array([-0.08508252]), array([ 0.20664826])],
[array([-0.04159874]), array([ 0.538443])],
[array([ 0.07626737]), array([ 0.25998565])],
[array([ 0.00222671]), array([ 0.97386301])],
[array([-0.12652962]), array([ 0.0621885])],
[array([ 0.01404373]), array([ 0.83703121])]], dtype=object)
You see that there are 11 tuples. I want to create a list with each of the first elements from each tuples. That would be a list that looks like this:
[1, -0.00770808, -0.0358526, 0.0088844, 0.0387529 ... ]. How can I do this?