From 0482a4a44085662f8b9ce56a6d49e24fc9537294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Fri, 8 May 2020 16:38:52 +0200 Subject: [PATCH 1/3] doc: clarify boxplot whisker's extension --- pandas/plotting/_core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index 748b83aec88f4..22404299cce78 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -216,8 +216,9 @@ def hist_frame( groups of numerical data through their quartiles. The box extends from the Q1 to Q3 quartile values of the data, with a line at the median (Q2). The whiskers extend from the edges -of box to show the range of the data. The position of the whiskers -is set by default to `1.5 * IQR (IQR = Q3 - Q1)` from the edges of the box. +of box to show the range of the data. By default, they extend up to +`1.5 * IQR (IQR = Q3 - Q1)` from the edges of the box, or to the farther +data point if it lies within this interval. Outlier points are those past the end of the whiskers. For further details see From 499ca7f5d6f09f14ecc0364a85f374b2add4895d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Sat, 9 May 2020 09:41:09 +0200 Subject: [PATCH 2/3] Correct a typo Co-authored-by: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> --- pandas/plotting/_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index 22404299cce78..c34cd63cc3447 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -217,7 +217,7 @@ def hist_frame( The box extends from the Q1 to Q3 quartile values of the data, with a line at the median (Q2). The whiskers extend from the edges of box to show the range of the data. By default, they extend up to -`1.5 * IQR (IQR = Q3 - Q1)` from the edges of the box, or to the farther +`1.5 * IQR (IQR = Q3 - Q1)` from the edges of the box, or to the farthest data point if it lies within this interval. Outlier points are those past the end of the whiskers. From c1a6175e0b788bde992f9387a6b3ac7ebe341cb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Mon, 11 May 2020 22:22:06 +0200 Subject: [PATCH 3/3] doc: rewording (applied joooey's suggestion) --- pandas/plotting/_core.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index c34cd63cc3447..287b0b4475d77 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -216,10 +216,9 @@ def hist_frame( groups of numerical data through their quartiles. The box extends from the Q1 to Q3 quartile values of the data, with a line at the median (Q2). The whiskers extend from the edges -of box to show the range of the data. By default, they extend up to -`1.5 * IQR (IQR = Q3 - Q1)` from the edges of the box, or to the farthest -data point if it lies within this interval. -Outlier points are those past the end of the whiskers. +of box to show the range of the data. By default, they extend no more than +`1.5 * IQR (IQR = Q3 - Q1)` from the edges of the box, ending at the farthest +data point within that interval. Outliers are plotted as separate dots. For further details see Wikipedia's entry for `boxplot `_.