pandas replace colomns location

df = df.reindex(['B','C','A'], axis=1)

Here is what the above code is Doing:
1. We’re creating a new DataFrame called df_reindexed.
2. We’re using the reindex() method on df_reindexed, and passing in a list of the row labels we want to use.
3. We’re setting the axis parameter to 1, which means we want to reindex the columns.
4. We’re using the inplace parameter to make these changes to the original DataFrame.