Let's say I have the following dataset:
d = {'Team': ['Duke', 'LSU'], 'Wins': [20, 18], 'Losses' : [5, 7], 'Conference' : ['ACC', 'SEC']}
df = pd.DataFrame(data=d)
df
Team Wins Losses Conference
0 Duke 20 5 ACC
1 LSU 18 7 SEC
Then I make a scatterplot of it
plt.plot(d['Losses'], d['Wins'], 'o')
I would like to color code my scatter plot by Conference. More specifically, I would like to only color SEC teams red, while all other data points are the default blue. Additionally, how would I go about coloring just Duke red, while every other datapoint is blue? I have about 200 teams in my dataset. How would I ago about doing this? Thanks!
