diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 3996728a1cc90..7317682d95256 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -7088,8 +7088,8 @@ def corr(self, method='pearson', min_periods=1): correl[j, i] = c else: raise ValueError("method must be either 'pearson', " - "'spearman', or 'kendall', '{method}' " - "was supplied".format(method=method)) + "'spearman', 'kendall', or a callable, " + "'{method}' was supplied".format(method=method)) return self._constructor(correl, index=idx, columns=cols)