Say that I have a list of the form
I want to manipulate the first elements of the last sublist. For example, in the case of multiplication by two, the resulting matrix should become
In my case, the third sublist contains around 40,000 pairs of numbers. If possible, I would like to avoid iterating through each data point. Any help would be greatly appreciated.