Plotting basics with pandas
Pandas makes plotting quite easy by automating much of the procedure for you. All pandas plotting is handled internally by matplotlib and is publicly accessed through the DataFrame or Series plot method. We say that the pandas plot method is a wrapper around matplotlib. When you create a plot in pandas, you will be returned a matplotlib Axes or Figure. You can use the full power of matplotlib to modify this object until you get the desired result.
Pandas is only able to produce a small subset of the plots available with matplotlib, such as line, bar, box, and scatter plots, along with kernel density estimates (KDEs) and histograms. Pandas excels at the plots it does create by making the process very easy and efficient, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access