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!
import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns import statsmodels.api as sm from statsmodels.formula.api import ols import statsmodels.stats.multicomp as multi %matplotlib inline data = pd.read_csv('/Users/josephfrasca/Coding/Python/Python-Practice/Stats/ToothGrowth.csv') data.head() data.head()