@@ -3060,19 +3060,51 @@ def barh(self, x=None, y=None, **kwds):
3060
3060
3061
3061
def box (self , by = None , ** kwds ):
3062
3062
r"""
3063
- Boxplot
3063
+ Make a box plot of the DataFrame columns.
3064
+
3065
+ A box plot is a method for graphically depicting groups of numerical
3066
+ data through their quartiles.
3067
+ The box extends from the Q1 to Q3 quartile values of the data,
3068
+ with a line at the median (Q2). The whiskers extend from the edges
3069
+ of box to show the range of the data. The position of the whiskers
3070
+ is set by default to 1.5*IQR (IQR = Q3 - Q1) from the edges of the
3071
+ box. Outlier points are those past the end of the whiskers.
3072
+
3073
+ For further details see Wikipedia's
3074
+ entry for `boxplot <https://en.wikipedia.org/wiki/Box_plot>`__.
3075
+
3076
+ A consideration when using this chart is that the box and the whiskers
3077
+ can overlap, which is very common when plotting small sets of data.
3064
3078
3065
3079
Parameters
3066
3080
----------
3067
3081
by : string or sequence
3068
3082
Column in the DataFrame to group by.
3069
- ` **kwds` : optional
3070
- Additional keyword arguments are documented in
3083
+ **kwds : optional
3084
+ Additional keywords are documented in
3071
3085
:meth:`pandas.DataFrame.plot`.
3072
3086
3073
3087
Returns
3074
3088
-------
3075
3089
axes : :class:`matplotlib.axes.Axes` or numpy.ndarray of them
3090
+
3091
+ See Also
3092
+ --------
3093
+ pandas.DataFrame.boxplot: Another method to draw a box plot.
3094
+ pandas.Series.plot.box: Draw a box plot from a Series object.
3095
+ matplotlib.pyplot.boxplot: Draw a box plot in matplotlib.
3096
+
3097
+ Examples
3098
+ --------
3099
+ Draw a box plot from a DataFrame with four columns of randomly
3100
+ generated data.
3101
+
3102
+ .. plot::
3103
+ :context: close-figs
3104
+
3105
+ >>> data = np.random.randn(25, 4)
3106
+ >>> df = pd.DataFrame(data, columns=list('ABCD'))
3107
+ >>> ax = df.plot.box()
3076
3108
"""
3077
3109
return self (kind = 'box' , by = by , ** kwds )
3078
3110
0 commit comments