0

In jupyter notebook I cannot see this graph:

feature_importances = pd.Series(clf.feature_importances_, index=columns)
feature_importances.sort_values(inplace=True)
feature_importances.plot(kind="barh", figsize=(7,6))

I can only see matplotlib.axes._subplots.AxesSubplot at 0xda87c18

progster
  • 557
  • 2
  • 10
  • 22

1 Answers1

1

Ensure you have executed a cell starting with this magic:

%matplotlib inline

This is now required in jupyter, whereas ipython notebook allowed the --matplotlib flag when starting the notebook server.

mtd
  • 1,869
  • 15
  • 18