Introduction to Pandas
Chapter 6: DataFrame methods
Plotting
Pandas also wraps around Matplotlib
to make it easy to plot your data. It works pretty much like Matplotlib
.
The official documentation gives lots of example of how to achieve this.
In the following example, we plot a histogram for the values of "Defense"
.
>>> import matplotlib.pyplot as plt
>>> import panda as pd
>>> df = pd.read_csv("pokemon.csv", index_col="Name")
>>> fig = plt.figure()
>>> axis = df["Defense"].plot.hist()
>>> plt.show()