Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
565 views
in Technique[技术] by (71.8m points)

python - Plotly(Python),Boxplot:更改晶须的长度(最小/最大)(Plotly (Python), Boxplot: Change length of whiskers (min/max))

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...