Suppose, we have the following dataframe.

We would like to change the order to major, grade, and name. We can achieve the result by the following methods

Method 1: Specifying a column name

Method 2: Specifying a column number

Method 3: Ascending/Descending Order

It will be even easier if we want to order the columns in ascending/descending order.