Statistics, Machine Learning, Data Science, Financial Planning, Python.
sns.barplot(x='factor1', y='y', data=df, ci='sd', capsize=0.1) plt.title('Main Effect of Factor 1') plt.xlabel('Factor 1') plt.ylabel('Mean of y') plt.show() plt.figure(figsize=(8, 6)) sns.barplot(x='factor2', y='y', data=df, ci='sd', capsize=0.1) plt.title('Main Effect of Factor 2')