Lines in seaborn
What are these lines in seaborn plots? And why does some point have these lines and some don’t?
Here is the code:
# grid = sns.FacetGrid(train_df, col='Embarked') grid = sns.FacetGrid(train_df, row='Embarked', size=3.5, aspect=2.0) grid.map(sns.pointplot, 'Pclass', 'Survived', 'Sex', palette='deep') grid.add_legend()
And here is the screen shot of the data used:
Pclass only has values: 1, 2, 3
Embarked has: ‘S’, ‘C’, ‘Q’
Sex: ‘female’, ‘male’
Survived: 1, 0