未验证 提交 b392ee4f 编写于 作者: wnma3mz's avatar wnma3mz 提交者: GitHub

fix sort usage

上级 b138d75c
......@@ -38,8 +38,9 @@ def programmer_1(file_name):
# 画箱线图
p = data.boxplot(return_type='dict')
x = p['fliers'][0].get_xdata()
y = p['fliers'][0].get_ydata().sort()
y = p['fliers'][0].get_ydata()
y = np.sort(y)
for i in range(len(x)):
# 处理临界情况, i=0时
temp = y[i] - y[i - 1] if i != 0 else -78 / 3
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册