pandas.DataFrame.boxplot

DataFrame.boxplot(column=None, by=None, ax=None, fontsize=None, rot=0, grid=True, **kwds)

Make a box plot from DataFrame column/columns optionally grouped (stratified) by one or more columns

Parameters :

data : DataFrame

column : column names or list of names, or vector

Can be any valid input to groupby

by : string or sequence

Column in the DataFrame to group by ax : matplotlib axis object, default None

fontsize : int or string

rot : int, default None Rotation for ticks grid : boolean, default None (matlab style default) Axis grid lines

Returns :

ax : matplotlib.axes.AxesSubplot