Numpy array - Getting the index only if the adjacent values not duplicates - python

后端 未结 0 934
情话喂你
情话喂你 2020-12-14 16:36

I have an array as below. arr = np.array([\'horse\', \'horse\', \'horse\', \'deer\', \'deer\', \'horse\', \'cat\', \'deer\'])

Need the indexes only if the adjacent va

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