Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lst_1 = [114170, 113970]
- lst_2 = [(array([114250, 114240, 114230, 114220, 114210, 114200, 114190, 114180,
- 114170, 114160, 114150, 114140, 114130, 114120, 114110, 114100,
- 114090]),
- array([114080, 114070, 114060, 114050]),
- array([114040, 114030, 114020, 114010, 114000, 113990, 113980, 113970,
- 113960, 113950, 113940, 113930, 113920, 113910, 113900, 113890,
- 113880]))]
- In [79]: res = [i for i,x in enumerate(lst_2[0]) if np.intersect1d(x, lst_1).size > 0]
- In [80]: res
- Out[80]: [0, 2]
Add Comment
Please, Sign In to add comment