I have this simplified dataframe:
ID Fruit F1 Apple F2 Orange F3 Banana
I want to add in the begining of the dataframe a new colum
import numpy as np df['New_ID']=np.arange(880,880+len(df.Fruit)) df=df.reindex(columns=['New_ID','ID','Fruit'])