Handling absence of data in apply function
Adding default values to Pearson calculation