import numpy as np import pandas as pd from scipy import stats df=pd.read_excel("C:/Users/vishw/OneDrive/Desktop/Book.xlsx") df f,p = stats.f_oneway(df['A'],df['B'],df['C']) f,p if p>0.05: print('Accept H0') else: print('Reject H0')
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter