I have a dataframe with many columns.
df=pd.DataFrame(data=np.random.rand(100,1000))
I need to have two specific column, say [793] and [642] as the first ones, while the order of the others does not matter.
I could do
df.columns=[793,642,...the rest...]
However, my columns are variable, as well as the reference ones.