Skip to content

Commit 564dfae

Browse files
authored
Fix using ToList on Row Collection (#6678)
1 parent aca8005 commit 564dfae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.ML.Fairlearn/Reductions/UtilityParity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public override DataFrame Gamma(PrimitiveDataFrameColumn<float> yPred/* Maybe ch
122122
dfNeg["sign"].FillNulls("-", inPlace: true);
123123

124124
// stack the temp dataframe dfNeg to the bottom dataframe that we want to return
125-
dfNeg.Rows.ToList<DataFrameRow>().ForEach(row => { gSigned.Append(row, inPlace: true); });
125+
gSigned.Append(dfNeg.Rows, inPlace: true);
126126

127127
return gSigned;
128128
}

0 commit comments

Comments
 (0)