Does anyone know a numpy alternative to pd.factorize()?
I have a need for speed in an algorithm, and would like to not use the pandas dataframe.
So for instance,
test = np.array(['yo', 'whats', 'up', 'whats', 'up', 'yo'])
shall return
pd.factorize(pd.Series(test))
array([0, 1, 2, 1, 2, 0])

