Data Analytics, Data Science, Python, Data Visualization, R.
convert into a pandas data frame df = pd.DataFrame( data= np.c_[iris['data'], iris['target']], columns= iris['feature_names'] + ['species'] ) # set manually the species column as a categorical variable df['species'] = pd.Categorical.from_codes(iris.target, iris.target_names) # use ".head()" to show