I am trying to calculate metrics and ROC-AUC scores based on the following inputs df1 and roc_input. The code below works fine when there are some values in all four metric