From e7f9dafa7f7a052697b05e5ba24f1f6c4f43c84c Mon Sep 17 00:00:00 2001 From: Aleksei Smirnov Date: Mon, 15 May 2023 12:31:22 +0300 Subject: [PATCH] Fix using ToList on Row Collection --- src/Microsoft.ML.Fairlearn/Reductions/UtilityParity.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.ML.Fairlearn/Reductions/UtilityParity.cs b/src/Microsoft.ML.Fairlearn/Reductions/UtilityParity.cs index be304962ce..0da2683d55 100644 --- a/src/Microsoft.ML.Fairlearn/Reductions/UtilityParity.cs +++ b/src/Microsoft.ML.Fairlearn/Reductions/UtilityParity.cs @@ -122,7 +122,7 @@ public override DataFrame Gamma(PrimitiveDataFrameColumn yPred/* Maybe ch dfNeg["sign"].FillNulls("-", inPlace: true); // stack the temp dataframe dfNeg to the bottom dataframe that we want to return - dfNeg.Rows.ToList().ForEach(row => { gSigned.Append(row, inPlace: true); }); + gSigned.Append(dfNeg.Rows, inPlace: true); return gSigned; }