Generation

generate functionThu, 23 Mar 2023

This code gives an error AttributeError: 'MultiComparison' object has no attribute 'plot_simultaneous' from statsmodels.stats.multicomp import pairwise_tukeyhsd tukey.plot_simultaneous(comparison_name="C") Fix it!

from statsmodels.stats.multicomp import pairwise_tukeyhsd tukey = pairwise_tukeyhsd(endog = df['A'], # Data groups = df['B'], # Groups alpha=0.05) # Significance level tukey.summary() fig = tukey.plot_simultaneous(comparison_name="C") fig.show()

Questions about programming?Chat with your personal AI assistant