Is the platform problem?

Hi all!! I copied the code fro the answer, error shows. is the platform problem?

Screen Link: https://app.dataquest.io/m/152/conditional-plots/5/modifying-the-appearance-of-the-plots

My Code:

sns.set_style('white')
sns.kdeplot(titanic['Age'], shade=True)
sns.despine(left=True, bottom=True)
plt.xlabel('Age')

What actually happened:

TypeErrorTraceback (most recent call last)
<ipython-input-1-1582f8404c48> in <module>()
      2 sns.kdeplot(titanic['Age'], shade=True)
      3 sns.despine(left=True, bottom=True)
----> 4 plt.xlabel('Age')

TypeError: 'str' object is not callable
1 Like

It is not a platform problem. Take a look at the topic below to see how to fix it.