index_lookup

glue.utils.array.index_lookup(data, items)[source]

Lookup which index in items each data value is equal to

Parameters
dataarray-like

An array-like object that can be used to instantiate a pandas.DataFrame.

itemsarray-like

An array-like of unique values in data.

Returns
ndarray

If result[i] is finite, then data[i] = categories[result[i]] Otherwise, data[i] is not in the categories list.