Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

How to create stack of bar plot in python?

$
0
0

@sid100158 wrote:

I am currently learning about plotting of bar plots in python . I have created a Data frame and plot it to get a bar plot. But I want to know how to create the stack of bar plot .

df = DataFrame(np.random.rand(6, 4),
....: index=['one', 'two', 'three', 'four', 'five', 'six'],
....: columns=pd.Index(['A', 'B', 'C', 'D'], name='Genus'))
df.plot(kind='bar')

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles