Answers for "seaborn hue order"

0

seaborn hue order

import seaborn as sns

titanic = sns.load_dataset("titanic")
hue_order = ['Third', 'Second', 'First']
sns.catplot(x="sex", y="survived", hue="class", data=titanic, 
			hue_order=hue_order, kind="bar")
Posted by: Guest on May-16-2021
0

seaborn orient

>>> import seaborn as sns
>>> sns.set_theme(style="whitegrid")
>>> tips = sns.load_dataset("tips")
>>> ax = sns.boxplot(x=tips["total_bill"])
Posted by: Guest on December-04-2020

Browse Popular Code Answers by Language