1

If the array is np.array([1, 3, 1, 5, 5, 5, 6, 3, 6, 3]), then I want to get array like this; np.array([0, 0, 1, 0, 1, 2, 0, 1, 1, 2]). Is there any numpy options? Or do I have to make new function?

sj95126
  • 6,520
  • 2
  • 15
  • 34
UNGGI LEE
  • 69
  • 3

0 Answers0