I have the following situation: I'm using the shap library in Python to make a chart. Here's the code I'm using:
shap.summary_plot(shap_values[1], df, plot_type="bar")
The chart is printed in my Jupyter Notebook, but if I try to save this plot as an image, I get this error:
AttributeError: 'NoneType' object has no attribute 'savefig'
I understand this function only prints the plot in my Jupyter Notebook, but is actually returning a DataFrame.
So how can I access the plot directly to save the plot as an image, given that I don't have access to the function itself?