【发布时间】:2018-10-22 00:37:38
【问题描述】:
我正在尝试使用此 python 循环打印数据集中每个变量的所有箱线图。
colNameList = list(df.columns)
for i in range (0, len(df.columns)):
df.boxplot(column=colNameList[i])
df 是我的数据集。
为什么这个简单的代码只显示最后一个箱线图?
【问题讨论】:
标签: python pandas matplotlib statistics boxplot