How to reorder columns in a Pandas DataFrame in Python

PHOTO EMBED

Tue Oct 20 2020 09:28:55 GMT+0000 (Coordinated Universal Time)

Saved by @ianh #python #pandas

df = df[["C", "A", "B"]]
content_copyCOPY

https://www.kite.com/python/answers/how-to-reorder-columns-in-a-pandas-dataframe-in-python