Case study–Python for histogram 
For Python for a histogram, please see Chapter 3, Python for process capability analysis (normal distribution).
PYTHON FOR HYPOTHESIS TESTING
Hypothesis testing is a technique for specifying whether to accept a null hypothesis about a population based on a set of sample data. In general, the null hypothesis states that there is no effect of a factor, or there is no difference between the two datasets. If the null hypothesis is rejected, the alternative hypothesis is accepted that says that the effect or the difference is significant.