Both Series and DataFrame objects have a plot() method that allows us to create several different plots and control some aspects of their formatting, such as subplot layout, figure size, titles, and whether to share an axis across subplots. This makes plotting our data much more convenient, as the bulk of the work to create presentable plots is achieved with a single method call. Under the hood, pandas is making several calls to matplotlib to produce our plot.
Some of the frequently used arguments to the plot() method include:
Parameter | Purpose | Type |
kind | Determines the plot type | String |
x/y | Column(s) to plot on the x-axis and the y-axis | String or list |
ax | Draws the plot on the Axes object provided | Axes |
subplots | Determines whether to make subplots | Boolean |
layout | Specifies how to arrange the subplots | Tuple of (rows, columns) |
figsize | Size to make... |