I have the following scenario: I have a train.csv file as the one below. Each row is mentioned 4 times with same index value.
Index sentence ending0 ending1 ending2 ending3
0 ABC DEF GHI JKL MNO
0 ABC DEF GHI JKL MNO
0 ABC DEF GHI JKL MNO
0 ABC DEF GHI JKL MNO
1 LKJ KJS AJA QHW IUH
... ... ... ... ... ...
...
...
2
...
...
...
What i am wanting to get is shown below:
Index sentence ending-id ending
0 ABC 0 DEF
0 ABC 1 GHI
0 ABC 2 JKL
0 ABC 3 MNO
1 LKJ 0 KJS
... ... ... ...
...
...