Change column order in deedle frame

放肆的年华 提交于 2019-12-05 18:12:53

Deedle has RealignRows extension method, but it turns out that we don't have RealignColumns. This is an omission and if you send a PR to Deedle adding this, that would be awesome!

It can be implemented by looking at the series of columns, realigning the columns and turning that back into a data frame. In C#, this looks as follows:

Frame.FromColumns(df.Columns.Realign(new[] { "key 1", "key 2" }));
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!