pandas moving column left code example Example: pandas move columns around df = df[['a', 'y', 'b', 'x']]