I want to change the legend such that the blue dots represent 'Survived' and the orange dots represent 'Not Survived'. However, when I load the plot, it gives me this and I do not know how to change it despite other StackOverflow responses. Here is my code for it.
g = sns.scatterplot(x="Age", y="Parch", hue="Survived",data=train[["Age", "Parch", "Survived"]], legend=False)
plt.legend(title='Survival Status', loc='upper right', labels=['Survived', 'Not Survived'])
I expected that it would add labels for both the orange and the blue but it does not.