I am trying to replace a seaborn.facetgrid
with a seaborn.catplot
. But the seaborn.catplot
does not properly label the hue in the Embarked = C
facet.
dataset: titanic
e = sns.FacetGrid(data= train_df, col='Embarked')
e.map_dataframe(sns.pointplot, 'Pclass', 'Survived', hue='Sex', palette='deep')
e.add_legend()
Embarked C: male is properly presented as hue
But my seaborn.catplot
shows:
sns.catplot(x='Pclass', y= 'Survived', hue='Sex', data=train_df, kind='point', col='Embarked')
Embarked C: male is not properly presented as hue