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

Demonstrating cumulative totals with area plots

Area plots are used to represent cumulative totals over time and to demonstrate the change in trends over time among related attributes. They can also be "stacked" to demonstrate representative totals across all variables.

Area plots are generated by specifying kind='area'. A stacked area chart is the default:

Using stacked=False produces an unstacked area plot:

By default, unstacked plots have an alpha value of 0.5, so it is possible to see how multiple series of data overlap.

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