How to aggregate & (and) clauses filtering Numpy arrays?

后端 未结 0 1360
半阙折子戏
半阙折子戏 2021-01-17 05:24

pseudo i.e.:

A = np.array(...)

conditions = [(A > 1), (A < 2)]                         # how to do something like these?

filtered = A[&(c         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题