【发布时间】:2017-03-20 07:33:55
【问题描述】:
code:
df.boxplot()
它按预期返回数据框中所有列的图。但它也在返回文本。例如:
{'boxes': [<matplotlib.lines.Line2D at 0x118efc278>,
<matplotlib.lines.Line2D at 0x118f0c668>,
<matplotlib.lines.Line2D at 0x118f20f98>,
<matplotlib.lines.Line2D at 0x11d58e908>,
<matplotlib.lines.Line2D at 0x11d5a6278>,
<matplotlib.lines.Line2D at 0x11d5b7ba8>,}
有没有办法删除文本以及任何自定义绘图以突出显示异常值的建议都会非常有帮助。提前致谢
【问题讨论】:
-
文本是函数响应。如果你不喜欢它,你可以这样做
a = df.boxplot() -
@Greg 谢谢它的工作。
标签: python pandas machine-learning scikit-learn