Hi@akhtar,
You can rearrange a DataFrame object by declaring a list of columns and using it as a key. You can see the below example for a better understanding.
import pandas as pd
fruit = pd.DataFrame(data = {'Fruit':['apple', 'banana', 'blueberry', 'grape'], 'Color':['red', 'yellow', 'blue', 'purple'], 'Seeds':['yes', 'no', 'yes', 'no']})
fruit.set_index('Fruit', inplace = True)