回答編集履歴
1
途中で送信してしまった。
answer
CHANGED
@@ -12,10 +12,15 @@
|
|
12
12
|
df.describe()
|
13
13
|
|
14
14
|
df.boxplot()
|
15
|
+
|
16
|
+
df.boxplot(sym="")
|
17
|
+
|
15
18
|
```
|
16
19
|
|
17
20
|
> ②下記画像は実際の出力結果なのですが、外れ値が多く存在します。これを取り除く方法はあるのでしょうか。
|
18
21
|
|
19
|
-
[ドキュメントを確認すればわかる](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.boxplot.html#pandas-dataframe-boxplot)と思いますが、質問の回答どおりの仕様です。
|
22
|
+
外れ値の扱いですが、[ドキュメントを確認すればわかる](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.boxplot.html#pandas-dataframe-boxplot)と思いますが、質問の回答どおりの仕様です。
|
20
23
|
|
21
|
-
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
|
24
|
+
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
|
25
|
+
|
26
|
+
表示しないようにするには、matplotlibのオプションで、symを指定すればOKです。
|