Running my code caused an error

Screen Link:
https://app.dataquest.io/m/152/conditional-plots/9/adding-a-legend

My Code:

g = sns.FacetGrid(titanic, col="Survived", row="Pclass", hue="Sex", size=3)
g.map(sns.kdeplot, "Age", shade=True)
g.add_legend()
sns.despine(left=True, bottom=True)
plt.show()

What I expected to happen:

To finish plots as requests.

What actually happened:

/dataquest/system/env/python3/lib/python3.4/site-packages/plotly/matplotlylib/renderer.py:451: UserWarning:

Dang! That path collection is out of this world. I totally don't know what to do with it yet! Plotly can only import path collections linked to 'data' coordinates

Hey @yida0127

quite strange! I executed your code on console and it even accepts it as an answer. Could you please hard refresh the browser and try again?

1 Like

Hi @Rucha

After refreshing my browser, I can run my code.
Thanks for helping!

1 Like