Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to give bar plot groupby python different colors

df.groupby(['tags_0', 'gender']).gender.count().unstack().plot(kind='barh', legend=False, color=['r', 'g', 'b'])
Comment

PREVIOUS NEXT
Code Example
Python :: validity of password in python 
Python :: python list of dictionaries to excel 
Python :: sort an array python 
Python :: if list item in string python 
Python :: python how to delete a directory with files in it 
Python :: python move cursor to previous line 
Python :: how to run a python script 
Python :: [0] * 10 python 
Python :: rest_auth pip 
Python :: pass keyword python 
Python :: histogram image processing python 
Python :: pyspark print a column 
Python :: tkinter disable button styles 
Python :: how to count how many cameras you have with python 
Python :: python count values in list 
Python :: measure time 
Python :: beautifulsoup find get value 
Python :: strp datetime 
Python :: how to print a column from csv file in python 
Python :: python pandas csv append 
Python :: django include 
Python :: check if element in list python 
Python :: download from colab to local drive 
Python :: find all subsequences of a list python 
Python :: how to write a script to display an image in python 
Python :: PhoneNumberField django forms 
Python :: app is not a registered namespace django 
Python :: python text input 
Python :: Python numpy.broadcast_to() Function Example 
Python :: python for/else 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =