xxxxxxxxxx
import numpy as np
categories = np.array([0, 1, 2], dtype=np.int32)
mapper_dict = {0: 'Setosa', 1: 'Versicolor', 2: 'Virginica'}
# map categories (int) to the names (string)
categories = np.array([mapper_dict[k] for k in categories])
categories # array(['Setosa', 'Versicolor', 'Virginica'], dtype='<U10')