seaborn how to change color if negative or positive code example
Example: sns how to change color if negative or positive
data['values'].plot(kind='barh',
color=(data['values'] > 0).map({True: 'g',
False: 'r'}))