i have the next structured array in numpy:
>>> matriz
rec.array([('b8:27:eb:07:65:ad', '0.130s', 255),
('b8:27:eb:07:65:ad', '0.120s', 215),
('b8:27:eb:07:65:ad', '0.130s', 168) ],
dtype=[('col1', '<U17'), ('col2', '<U17'), ('col3', '<i4'),
('col4','<U17')])
i need to find in 'col3' the numbers < 179, but also i need to print the row where the number is.
for instance, in matriz the number lower than 179 is 168, then i need to print
('b8:27:eb:07:65:ad', '0.130s', 168)
i did,
for j in matriz['col3']:
if j< 254:
print(j)
but i got 168 only the int, any idea?.
and, someone knows, if with pandas library, could i do that?..
thanks