首页 > 解决方案 > 为 Python 中的每一列打印一个箱线图

问题描述

from matplotlib import pyplot as plt
for column in data:
    plt.figure()
    data.boxplot([column])

错误:

/ 不支持的操作数类型:“str”和“int”

有些列是对象类型,有些是浮点型、整数型。我也想绘制object类型

标签: pythonpandasmatplotlib

解决方案


推荐阅读