Published
- 1 min read
countplot in pandas
The solution for this is noted below
countplot in pandas
Solution
>>> import seaborn as sns
>>> sns.set_theme(style="darkgrid")
>>> titanic = sns.load_dataset("titanic")
>>> ax = sns.countplot(x="class", data=titanic)
Try other methods by searching on the site. That is if this doesn’t work