Skip to content

Commit 806b2af

Browse files
committed
Feedback corrections
1 parent 89a7848 commit 806b2af

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

pandas/plotting/_core.py

+14-9
Original file line numberDiff line numberDiff line change
@@ -3033,11 +3033,16 @@ def box(self, by=None, **kwds):
30333033
r"""
30343034
Make a box plot of the DataFrame columns.
30353035
3036-
This method draws a box and whisker for each series in the DataFrame
3037-
in a single chart. The boxes share the vertical axis, which
3038-
makes makes it easier to compare if they are similar in scale.
3039-
Box plots are useful because they clearly show the median,
3040-
quartiles and flier points in the data.
3036+
A box plot is a method for graphically depicting
3037+
groups of numerical data through their quartiles.
3038+
The box extends from the Q1 to Q3 quartile values of the data,
3039+
with a line at the median (Q2).The whiskers extend from the edges
3040+
of box to show the range of the data. The position of the whiskers
3041+
is set by default to 1.5*IQR (IQR = Q3 - Q1) from the edges of the
3042+
box. Outlier points are those past the end of the whiskers.
3043+
3044+
For further details see Wikipedia's
3045+
entry for `boxplot <https://en.wikipedia.org/wiki/Box_plot>`_.
30413046
30423047
A consideration when using this chart is that the box and the whiskers
30433048
can overlap, which is very common when plotting small sets of data.
@@ -3056,9 +3061,9 @@ def box(self, by=None, **kwds):
30563061
30573062
See Also
30583063
--------
3059-
:meth:`pandas.DataFrame.boxplot` : Another method to draw a box plot.
3060-
:meth:`pandas.Series.plot.box` : Draw a box plot from a Series object.
3061-
:func:`matplotlib.pyplot.boxplot`: Draw a box plot in matplotlib.
3064+
pandas.DataFrame.boxplot: Another method to draw a box plot.
3065+
pandas.Series.plot.box: Draw a box plot from a Series object.
3066+
matplotlib.pyplot.boxplot: Draw a box plot in matplotlib.
30623067
30633068
Examples
30643069
--------
@@ -3068,7 +3073,7 @@ def box(self, by=None, **kwds):
30683073
.. plot::
30693074
:context: close-figs
30703075
3071-
>>> data = np.random.randint(0, 10, size=(25, 4))
3076+
>>> data = np.random.randn(25, 4)
30723077
>>> df = pd.DataFrame(data, columns=list('ABCD'))
30733078
>>> plot = df.plot.box()
30743079
"""

0 commit comments

Comments
 (0)