I have the following DataFrame (df):
DataFrame
df
import numpy as np import pandas as pd df = pd.DataFrame(np.random.rand(10, 5))
The Most simple way Suppose you have df with columns A B C, you can just df.reindex(['B','C','A'],axis=1)
A
B
C
df.reindex(['B','C','A'],axis=1)