scipy/scipy — pull request #132 by dlo (2012-01-12 19:38:17+00:00)
Title: add error handling and correct degrees of freedom in chisquare

Raise a ValueError when the degrees of freedom is less than 1, and set the
degree of freedom to (rows-1)*(cols-1) (previously it was just the length of
the array minus one, which is only appropriate for one dimensional data sets).

Also update documention to reflect this change.