Statistics, Machine Learning, Data Science, Financial Planning, Python.
pairwise_tukeyhsd(data, labels) # Convert the results to a DataFrame for better visualization tukey_df = pd.DataFrame(data=tukey_results._results_table.data[1:], columns=tukey_results._results_table.data[0]) print(tukey_df) group1 group2 meandiff p-adj lower upper reject 0 Group1 Group2 -3.6 0.3448