'<' not supported between instances of 'float' and 'str' Error for Tukey HSD Test
问题 I get a strange error when running the Tukey test. I hope somebody is able to help me with this as I tried a lot. This is my dataframe: Name Score 1 A 2.29 2 B 2.19 This is my Tukey Test code: #TUKEY HSD TEST tukey = pairwise_tukeyhsd(endog=df['Score'].astype('float'), groups=df['Name'], alpha=0.05) tukey.plot_simultaneous() plt.vlines(x=49.57,ymin=-0.5,ymax=4.5, color="red") tukey.summary() This is the error: <ipython-input-12-3e12e78a002f> in <module>() 2 tukey = pairwise_tukeyhsd(endog=df[