I am very new to python, I want to get the first and last row index of each unique elements based on the 2nd column.
1
4
6
in this case, the unique element last index are:
3
5
8
MUY09KT00 TW00.00 MUY09KT00 TW00.00 MUY09KT00 TW00.00 MHJ09KT00 PW00.00 MHJ09KT00 PW00.00 LHJ09KT00 NPW00.00 LHJ09KT00 NPW00.00 LHJ09KT00 NPW00.00in this case, the unique element first index are:
1
4
6
in this case, the unique element last index are:
3
5
8