Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
376 views
in Technique[技术] by (71.8m points)

python - Display multiple columns in same Histogram

Problem

Hello fellow stackers! I'm new to python viz and would need some helps. Thanks!

I have data that looks similar to following:

Rank Class1 Class2 Class 3
1 54 94 24
2 46 38 23
3 72 56 47
4 26 47 34
question from:https://stackoverflow.com/questions/66068207/display-multiple-columns-in-same-histogram

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

How about:

df.plot.bar(x='Rank')

Output (with your sample data):

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...