pydata/pandas — pull request #5399 by tr11 (2013-10-31 15:41:15+00:00)
Title: Display the correct error message when calling a binary moment without appropriate parameters.

This pr fixes a typo in the type checking of binary moments. It makes the error messages below consistent:

>>> import pandas
>>> a = pandas.DataFrame([1,2,3,4,5,6])
>>> pandas.rolling_cov(list(), a, 3)
ValueError: arguments to moment function must be of type ndarray/DataFrame

>>> pandas.rolling_cov(a, list(), 3)
TypeError: unsupported type: