Suppose i have the following nested list:<br><br>>>> x<br>[['19600894', '1', 'chr15_76136768', 'MISSENSE'], ['19600894', '2', 'chr15_76136768', 'MISSENSE'], ['18467762', '1', 'chr14_23354066', 'MISSENSE']]<br>
<br><br>How do i obtain from nested list x (given above), the following nested list z:<br><br>>>> z<br>[['chr15_76136768', 'MISSENSE'], ['chr14_23354066', 'MISSENSE']]<br><br><br>------<br>
In other words, if the third element of an element of x is the same, then i wish to combine it into a single element. <br>