scipy.stats.normaltest (array, axis = 0) checks if the sample differs from the normal distribution. This function tests the null hypothesis of the population from which the sample was taken.
Parameters: 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.