I have some trouble to add lengend to my seaborn plot. In the example I trying to let 0 represent "Not First Time". Let 1 represent "First Time".
Asked
Active
Viewed 22 times
0
-
1by using the `hue` parameter. However, it is not appropriate to add a legend to this because the categories are already displayed on the x-axis. If you don't want 0 and 1 then use `.replace` on the dataframe column and replace the values in the column with the strings. – Trenton McKinney Dec 09 '22 at 06:39