I performed a t-test on my dataframe and want to access the p-values from the t-test results. Some have suggested to use .summary of the t-test results shown below:
cat1 = df[df['Drug']=='Drug A']
cat2 = df[df['Drug']=='Drug B']
results = ttest_ind(cat1['intake'], cat2['intake'])
pvals = results.summary()
But i get this error:
AttributeError: 'Ttest_indResult' object has no attribute 'summary'
How can I fix this?