Is the platform problem?

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

Screen Link:

My Code:

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

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.