I am trying to filter my ndarray by another array I have collected (with the same values)
My main ndarray looks like
[['Name' 'Col1' 'Count']
['test' '' '413']
['erd' ' ' '60']
...,
['Td1' 'f' '904']
['Td2' 'K' '953']
['Td3' 'r' '111']]
I have another list with various matching names
names = ['Td1','test','erd']
What I'd Like to Do
I'd like to use the list names as a filter against the ndarray above?
What I've Tried
name_filter = main_ndarray[:,0] == names
This does not work
What I'd Expect
[['Name' 'Col1' 'Count']
['test' '' '413']
['erd' ' ' '60']
['Td1' 'f' '904']]