我正在尝试按seaborn绘制箱形图,并且遇到以下错误:
TypeError:无法使用灵活类型执行归约
sns.boxplot(x='hour', y='flow', data=Saturday_df)
数据集为: Saturday_df.head(2)
date time flow week_day hour
96 2016-01-02 00:00:00.000 NaN Saturday 0
97 2016-01-02 00:15:00.000 NaN Saturday 0
我遇到了以下错误:
TypeError: cannot perform reduce with flexible type