def unique(array):
    # numpy.unique doesn't handle mixed-types on python3,
    # so we use pandas
    U, I = pd.factorize(array, sort=True)
    return I, U
Return the unique elements of the array U, as well as
dataset/ETHPy150Open glue-viz/glue/glue/utils/array.py/unique