scipy.stats.normaltest(array, axis=0) function test whether the sample is different from the normal distribution. This function tests the null hypothesis of the population that the sample was drawn from.
array : Input array or object having the elements.
axis : Axis along which the normal distribution test is to be computed. By default axis = 0.
Returns : k2 value and P-value for the hypothesis test on data set.
Normal test for given data : NormaltestResult(statistic=146.08066794511544, pvalue=1.901016994532079e-32)
Normal test for given data : NormaltestResult(statistic=344.05533061429884, pvalue=1.9468577593501764e-75)
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.