I have a dataframe (built from consecutive pairs) with the following structure:
Name Var1 Var2 Comments
A 0.5 4 Zone1
A1 0.9 5 Zone2
B 0.3 55 Zone1
B1 0.1 7 Zone2
C 2 8 Zone1
C 3 9 Zone2
D 0.2 0.6 Zone1
D 3 4 Zone2
I wish to split it and save it in new dataframe with the following structure:
Name Var1 Var2 Comments Name.1 Var3 Var4 Comments.1
A 0.5 4 Zone1 A1 0.9 5 Zone2
B 0.3 55 Zone1 B1 0.1 7 Zone2
C 2 8 Zone1 C 3 9 Zone2
D 0.2 0.6 Zone1 D 3 4 Zone1
Is it possible? can some one help me.
Thanks