move every column tag over one pandas code example Example: pandas move columns around df = df[['a', 'y', 'b', 'x']]