Move column by name to front of table in pandas
We can use ix to reorder by passing a list: Another method is to take a reference to the column and reinsert it at the front: You can also use loc to achieve the same result as ix will be deprecated in a future version of pandas from 0.20.0 onwards: