I'm trying to use Plotly to do a Displot for the returns for Apple stock in the past year.
import plotly.figure_factory as ff
hist_data = [df['Return'][1:]]
group_labels = ['Apple Return distplot']
fig = ff.create_distplot(hist_data, group_labels, bin_size=.1)
fig.show()
And I got the following error message:
AttributeError: 'Figure' object has no attribute 'show'
How can I resolve the above issue?
plotlyare you using? Can you show us the output ofprint(plotly.__file__)?/Users/jacquelinewong/anaconda3/lib/python3.6/site-packages/plotly/__init__.py