The pandas.plotting module
In the Plotting with pandas section, we covered standard plots that pandas
has provided easier implementations for. However, pandas
also has a module (which is appropriately named plotting
) with special plots that we can use on our data. Note that the customization options of these may be more limited because of how they are composed and returned to us.
We will be working in the 3-pandas_plotting_module.ipynb
notebook for this section. As usual, we will begin with our imports and reading in the data; we will only be using the Facebook data here:
>>> %matplotlib inline >>> import matplotlib.pyplot as plt >>> import numpy as np >>> import pandas as pd >>> fb = pd.read_csv( ... 'data/fb_stock_prices_2018.csv', ... index_col='date', ... parse_dates=True ... )
Now, let's take a tour of some of the...