how to use chi square test in python with scipy code example Example: chi square test in python from scipy.stats import chisquare stat, p = chisquare(mylist)