If you have a dataframe, e.g.:
df = pd.DataFrame({'values': [45,48,52,49,45], 'condition':[-1,-1,1,1,-1]})
Is it possible with matplotlib to plot the 'values' with the color of the marker dependent on the 'condition', e.g. green markers for values where the corresponding condition is 1 and red markers for values where the condition is -1?
Thanks!