pydata/pandas — pull request #5760 by yieldsfalsehood (2013-12-20 19:35:08+00:00)
Title: Update rolling skew & kurtosis to handle cases where they aren't defined

The rolling skewness and kurtosis in algos.pyx were modified to match
the testing logic in pandas/core/nanops.py. They now both return NaN
where they are not defined, which occurs where there are either too
few observations or where the variance is zero.

A set of tests was added to verify that Nan is returned in these cases
and that the computations continue to work correctly when the values
are defined.