So this is my first post here and English is not my native language, I'll try to be as clear as possible.
I have a numpy array coming frome a shape (basically a table of data) containing the following :
[('information1', 'identifier1', length1)
('information2', 'identifier2', length2)
('information3', 'identifier3,identifier4', length3)
....
]
where :
informationxis astring,identifieris astringcontaining one or multiple ids in onestring,lengthis afloat.
I need to extract from this array all the rows containing information about one identifier.
In SQL I would do
select * from array where id like "%identifier1%"
It's easy when there's only one identifier :
extract = array[array[id_header] == identifier1]
Is there any elegant and pythonic way to do so (maybe through extract, select or where) ?