How to add a new variable to an existing data frame, but I want to add to the front not end.
eg. my dataframe is
b c d
1 2 3
1 2 3
1 2 3
I want to add a new variable a, so the dataframe will looks like
a b c d
0 1 2 3
0 1 2 3
0 1 2 3
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…