pandas修改列的顺序

时间:2023-03-09 22:47:07
pandas修改列的顺序

http://www.cnblogs.com/zhoudayang/p/5414020.html

cols = list(ret)
cols.insert(0,cols.pop(cols.index('STKCODE')))
ret = ret.ix[:,cols]

相关文章