The DataFrame class of Python pandas library is a two dimensional data container. The DataFrame class has several categories of methods defined on it to help analyze its data. The methods include statistical methods, mathematical methods and other subset selection methods. Any data analysis without diagrams is not so powerful. Hence pandas DataFrame class is equipped with the capability of plotting diagrams as well.

The pandas library uses matplotlib as the plotting backend. In future versions of pandas this may become a configurable pandas option. To use the plotting features of DataFrame and other pandas classes matplotlib is a soft dependency. Pandas does not require matplotlib otherwise.

The DataFrame class has a member/attribute named "plot". Using the "plot" instance, various diagrams can be plotted for the DataFrame. The plotting techniques include Area plot, Vertical bar plot, Horizontal bar plot and so on. Each technique is covered in one the articles below.

Copyright 2023 © pythontic.com