I know that 1.5 * IQR is a common rule, but I would like to plot other min/max if possible.
(我知道1.5 * IQR是一个通用规则,但我想尽可能绘制其他最小/最大。)
I am using plotly (python). (我正在使用plotly(python)。)
Basically, I would like to define a function to show the boxplot by the parameters data frame, column, and a self-defined multiplier. (基本上,我想定义一个函数来通过参数数据框,列和自定义乘数显示箱线图。)
def get_boxplot(df,column, multiplier):
data = [go.Box(y=df[column],boxpoints="outliers")]
return pyo.plot(data)
My goal is to replace 1.5 * IQR by the multiplier parameter.
(我的目标是用乘数参数替换1.5 * IQR。)
Do you have an idea of how to change my function?
(您是否知道如何更改我的功能?)
Thank you!
(谢谢!)
ask by Len translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…