Closed CarlKCarlK closed 6 years ago
This fixes it:
public static Frame<int, string> MergeFramesByRow(IList<Frame<int, string>> frameList)
{
int start = 0;
var list2 = new List<Frame<int, string>>();
foreach(var frame in frameList)
{
list2.Add(frame.IndexRowsWith(Enumerable.Range(start, frame.RowCount)));
start += frame.RowCount;
}
var result = FrameModule.MergeAll(list2);
return result;
}
Greetings,
From C#, I want to merge frames. I couldn't find a method for that, so I created the utility function below. Sadly, when the # of rows is 10K or more, it takes minutes to work. I think the problem is that integer index access to rows is slow. If this can be fixed (or if there is a better way to merge frames), that would be great.