Visualizing Data

Hey,

Earlier in the Data Visualization module, we have been taught about the matplotlib.pylpot module for visualizing data. However, in the Probability and statistics module, the things are lil bit changed. The syntax we are using is that of series.plot.bar() or series.plot.pie().

First of all, What is plot here? Is it pre defined module in python?
Secondly, how is using this vs the matplotlib different ?

Hi @keswani06,

Good question! so series.plot.bar() and series.plot.pie() are methods that are built in to the pandas library. They are there for convenience and under the hood are really using Matplottlib.

I’m not 100% how they work mechanically but series.plot.bar() is really using plt.bar() and should achieve the same result even thought the syntax and parameters you pass into might be slightly different.