http://www.cnblogs.com/zhoudayang/p/5414020.htmlcols = list(ret)cols.insert(0,cols.pop(cols.index('STKCODE')))ret = ret.ix[:,cols]