Answers for "countplot in pandas"

0

countplot in pandas

>>> import seaborn as sns
>>> sns.set_theme(style="darkgrid")
>>> titanic = sns.load_dataset("titanic")
>>> ax = sns.countplot(x="class", data=titanic)
Posted by: Guest on December-09-2020
0

countplot for different classes in a column

>>> ax = sns.countplot(x="who", data=titanic, palette="Set3")
Posted by: Guest on September-30-2020

Python Answers by Framework

Browse Popular Code Answers by Language