I have a pandas DataFrame with positive and negative values as a bar chart. I want to plot the positive colors \'green\' and the negative values \'red\' (very original...lol
If you want to avoid adding a column, you can do TomAugspurger's solution in one step:
data['values'].plot(kind='barh', color=(data['values'] > 0).map({True: 'g', False: 'r'}))