Taking a list of 2d arrays and getting the non-zero values as ones in a single array in numpy

后端 未结 0 1706
别跟我提以往
别跟我提以往 2020-12-20 02:30

I have a list of 2-d numpy arrays, and I wish to create one array consisting of the non-zero values (or-wise) of each array set to 1. For example

arr1 = np.ar         


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