正如评论中提到的,你希望将你的数据转换为浮点数。 dd['value'] = dd['value'].astype(float) sns.boxplot(x='dataset', y='value', hue='Model', data=dd) 应该适用于您
seaborn.factorplot(x='dataset', y='value', hue='Model', data=dd, kind='box')
- Paul Hdf.dtypes
进行检查。 - Archie