Calculate mean of non-zero values in a 2D NumPy array using index from another 2d array

前端 未结 0 1192
Happy的楠姐
Happy的楠姐 2020-12-28 21:13

I want to calculate the mean of non-zero values in a 2D array using an index from another 2d array and return these values to an array of same shape. For example,

Inp

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