cols = list(df.columns) cols = [cols[-1]] + cols[:-1] df = df[cols]
cols = [df.columns[-1]] + [col for col in df if col != df.columns[-1]] df = df[cols]