我正在使用一个数据集,该数据集具有一个分类预测变量(具有值East Coast或West Coast)和一个因变量(Minutes)。这是CSV文件:https://drive.google.com/file/d/15wlmm1gN4dPUiZCwALXVP3YpE31A6EqI/view?usp=sharing
我试图将Coast设置为X轴上的自变量,并将Minutes设置为Y轴上的因变量:
sns.catplot(x=iphone_data_recoded['Coast'], y=iphone_data_recoded['Minutes'], data=iphone_data_recoded)
我收到以下错误:
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
完整的错误日志在此RTF中:https://drive.google.com/file/d/1KjzP1_6BYgnDhjU-Ug4EHjelZcbNY3dB/view?usp=sharing