First page Back Continue Last page Overview Image

Bar Plots in Pandas

All we have to do to create bar plots is add the keyword parameter "kind" to the plot method and set it to "bar".

import pandas as pd

data = [100, 120, 140, 180, 200, 210, 214]

s = pd.Series(data, index=range(len(data)))

s.plot(kind="bar", rot=90)