Quantcast
Channel: how to filter arrays stored as two lists - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Dani Mesejo for how to filter arrays stored as two lists

You could use np.isin to create the masks and then filter using those masks:import numpy as npdata = [np.array([[12., 2., 7.], [9., -1., 0.], [2., 0., 4.], [14., 2., 1.2]]), np.array([[11., 3., 1.],...

View Article



how to filter arrays stored as two lists

I have to lists of arrays, one is all my data and another one is a filter:data= [array([[12., 2., 7.], [9., -1., 0.], [2., 0., 4.], [14., 2., 1.2]]), array([[11., 3., 1.], [2., 5., 0.], [1., -1., 1.],...

View Article
Browsing latest articles
Browse All 2 View Live


Latest Images