import numpy as np
import pandas as pd
NR=pd.read_excel("F:/2019 GB Python/Normality.xlsx")
NR.head()
NR.shape
from scipy import stats
stats.normaltest(NR.Normal).pvalue
stats.normaltest(NR.NonNormal).pvalue
from scipy.stats import anderson
anderson(NR.Normal)
from statsmodels.graphics.gofplots import qqplot
from matplotlib import pyplot
qqplot(NR.Normal, line ='s')
pyplot.show()
qqplot(NR.NonNormal, line ='s')
pyplot.show()