python - add an empty column to a dataframe

PHOTO EMBED

Fri Jul 02 2021 07:43:48 GMT+0000 (Coordinated Universal Time)

Saved by @pmv #python

mydf = mydf.reindex(columns = mydf.columns.tolist() + ['newcol1','newcol2'])
content_copyCOPY

https://stackoverflow.com/questions/16327055/how-to-add-an-empty-column-to-a-dataframe