Python – [SOLVED] How to arrange a numpy list in order according to the order of a list or string
How to arrange a numpy list in order according to the order of a list or string Question: i have a numpy array: import numpy as np phrase = np.array(list("eholl")) a = ‘hello’ i would like to sort the variable, according to the order of letters (h first, e second…) inside the variable "a" that …