python

Reorder dataframe columns using column names in pandas

The code can be used to reorder columns sequence using column name in pandas - python package

dframe = dframe[['column 5','column 6',4,3,2,1]]
Was this helpful?