I have the following list of tuples
lstoflsts = [(1.2, 2.1, 3.1), (0.9, 3.4, 7.4), (2.3, 1.1, 5.1)] I would like to get the minimum value of the 2nd column (which is 1.1 based on above example).
I tried playing around with min(listoflists) without success.
any suggestions how to approach?
note: if possible I would like to avoid looping over rows and columns...
min(zip(*lstoflsts)[1])?numpy arrayinstead, you can just domin(lstoflsts[:,1]).