Skip to content

Commit

Permalink
sq
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashanth Govindarajan committed Mar 16, 2021
1 parent 96bb44a commit 9d9f224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Microsoft.Data.Analysis/IDataView.Extension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ public static DataFrame ToDataFrame(this IDataView dataView, long maxRows, param

using (DataViewRowCursor cursor = dataView.GetRowCursor(activeColumns))
{
List<Delegate> activeColumnDelegates = new List<Delegate>();
Delegate[] activeColumnDelegates = new Delegate[activeColumns.Count];
int columnIndex = 0;
foreach (DataViewSchema.Column column in activeColumns)
{
Delegate valueGetter = columns[columnIndex].GetValueGetterUsingCursor(cursor, column);
activeColumnDelegates.Add(valueGetter);
activeColumnDelegates[columnIndex] = valueGetter;
columnIndex++;
}
while (cursor.MoveNext() && cursor.Position < maxRows)
Expand Down

0 comments on commit 9d9f224

Please sign in to comment.