In the following page, the formula for the chi-squared density is incorrect:
https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.chi2.html