简体   繁体   中英

2 column n rows array- operation on elements of two colums in each row

I have an array of n rows and two columns (array). I have another variable (a) which I am using as reference.

 for a between (1-10000)
     if    column1 of ARRAY<= a <= column2 of the ARRAY
            save the tuple (a, YES)

This resultant tuple I will use for further operation

NumPy 文档包含您可能需要的所有信息。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM