O'Reilly logo

Learning pandas - Second Edition by Michael Heydt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Showing relative differences with bar plots

Bar plots are useful in visualizing the relative differences in values of non-time-series data. Bar plots can be created by using the kind='bar' parameter of the .plot():

A multiple-series bar plot will be created to compare multiple values at each x-axis label:

The stacked=True parameter can be use to stack the bars instead of being side by side:

The orientation can be turned to horizontal using ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required