I have a pandas DataFrame and I want to plot a bar chart that includes a legend.
DataFrame
import pylab as pl from pandas import * x = DataFrame({\"Alpha
The most succinct way to go is:
x.plot(kind="bar").legend(bbox_to_anchor=(1.2, 0.5))
or in general
x.plot(kind="bar").legend(*args, **kwargs)