numpy.where with a 2d array of tuples

前端 未结 0 1852
遇见更好的自我
遇见更好的自我 2020-12-06 17:50

i have a 2D numpy array of tuples like below:

a=array([[(2, 3), (inf, 10)], [(2, 2), (7, 8)]], dtype=object)

i used b= np.min(a) and found b = (2, 2)

ho

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