how to reposition columns in pandas code example
Example 1: how to change the column order in pandas dataframe
df = df.reindex(columns=column_names)
Example 2: how to move columns in a dataframen in python
df = df[['column1', 'column2','column3']]