I need to plot a sns lmplot of two quantitative variables according to a qualitative variable (sex). When I add hue and col arguments as follows:
g = sns.lmplot(x = "exper", y = "wage", hue = "female",col = "female", data = df, sharey = False)
it all works out. Yet instead of titling each plot as female = 0 and female = 1, I want to title them as Men and Women. To do so, I tried a loop:
for i in df["female"]:
if i == 0:
g.set_titles(col_template = "Men")
else:
g.set_titles(col_template = "Women")
But it yields Men on both plots. What's wrong?

