Answers for "sns how to change color if negative or positive"

0

sns how to change color if negative or positive

data['values'].plot(kind='barh',
                    color=(data['values'] > 0).map({True: 'g',
                                                    False: 'r'}))
Posted by: Guest on November-09-2020

Code answers related to "sns how to change color if negative or positive"

Python Answers by Framework

Browse Popular Code Answers by Language