def _calculate(self, input): input = input[~np.isnan(input).any(axis=1)] return pearsonr(input[:,0], input[:,1])