Im using this code from Sci Kit Learns website for a regression algorithm and then plotting Deviance & variable importance with matplotlib.
[Sci Kit Learn Gradient Boost regression][1]
The Sci Kit Learn examples the famous Boston housing project data set that is built into the Sci Kit Learn Package when data is plotted matplotlib references boston.feature_names
and I am trying to find away around this with my Pandas data frame.
plt.yticks(pos, boston.feature_names[sorted_idx])
Can this be retrofitted for Y ticks to be my column header name in my Pandas dataframe?