array([(97.1, 160.2, 34.7, 40.8, 35.8, 126.1, 117.9),
(91.1, 152.7, 33.5, 33. , 38.5, 125.5, 103.1),
(73. , 161.2, 37.4, 38. , 31.8, 106.2, 92. ), …,
(73. , 159.6, 36.2, 37. , 31.4, 104.6, 99.3),
(78.6, 168.5, 38.1, 40.2, 36. , 102.4, 98.5),
(82.8, 147.8, 34.8, 32.8, 39.5, 121.4, 110. )],
dtype=[(‘BMXWT’, ‘<f8’), (‘BMXHT’, ‘<f8’), (‘BMXARML’, ‘<f8’), (‘BMXLEG’, ‘<f8’), (‘BMXARMC’, ‘<f8’), (‘BMXHIP’, ‘<f8’), (‘BMXWAIST’, ‘<f8’)])
This is my array and for some reason the values are grouped in brackets. How do I extract them? I just want the values within the brackets to be on their own within the array.
I have tried ravel, I have tried flatten, but nothing seems to work.
Jessica Tang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.