I have this list:
dCF3v=[[(1.90689635276794, -44704.76171875)],
[(1.90689635276794, -44705.76171875)],
[(1.90689635276794, -44706.76171875)],
[(1.90689635276794, -44707.76171875)]
]
I'd like to know the index of the row where the maximum value is. In the example above: row index 3.
I already have a code for finding the maximum value:
CF3a = (abs(x[0][1]) for x in dCF3v)
CF3 = max(CF3a)
If possible I'd like to adapt this code and not have to do the classic for and if loops
.