Código não roda. Alguma sugestão? Grato!
ax = sns.distplot(tmdb_com_mais_de_10_votos.vote_average,
hist_kws = {'cumulative':True},
kde_kws = {'cumulative':True})
ax.set(xlabel="Nota média", ylabel="% acumulada de filmes")
ax.set_title("Média de votos em filmes no TMDB 5000 com 10 ou mais votos")
Erro: ImportError Traceback (most recent call last) in () 1 ax = sns.distplot(tmdb_com_mais_de_10_votos.vote_average, 2 hist_kws = {'cumulative':True}, ----> 3 kde_kws = {'cumulative':True}) 4 ax.set(xlabel="Nota média", ylabel="% acumulada de filmes") 5 ax.set_title("Média de votos em filmes no TMDB 5000 com 10 ou mais votos")
2 frames /usr/local/lib/python3.6/dist-packages/seaborn/distributions.py in univariatekdeplot(data, shade, vertical, kernel, bw, gridsize, cut, clip, legend, ax, cumulative, **kwargs) 296 warnings.warn(msg, UserWarning) 297 if cumulative: --> 298 raise ImportError("Cumulative distributions are currently " 299 "only implemented in statsmodels. " 300 "Please install statsmodels.")
ImportError: Cumulative distributions are currently only implemented in statsmodels. Please install statsmodels.
NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the