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