professor bigglesworth
professor bigglesworth

Reputation: 570

Reordering columns of a Deedle Frame

Is there a more efficient way to reorder columns in a Deedle frame than doing something like the following:

let fr2 = fr.Columns.[["colC"; "colA"; "colB"]]

It seems a bit inefficient, especially given that I have to iterate through a ton of these files every weekend. There is a related question here but doesn't seem to work for me.

Upvotes: 0

Views: 189

Answers (1)

s952163
s952163

Reputation: 6324

How about this:

let df = Frame.ofColumns(df.Columns.Realign(newcolidx))

As this appears to me returning a new df, it might not be ideal for you.

And this Issue still remains open.

Upvotes: 1

Related Questions