Find the index of maximum value in numpy exclude zero values

后端 未结 0 1783
别那么骄傲
别那么骄傲 2020-11-22 00:42

I have the following numpy:

e = np.array([0, -1.3, 0, -3.9, 0, -0.9, 0])

I want to find the index of the maximum value in the list, but exclu

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