Horje
minimum from list of tuples Code Example
minimum from list of tuples
data = [ (1, 7.57), (2, 2.1), (3, 1.2), (4, 2.1), (5, 0.01), 
         (6, 0.5), (7, 0.2), (8, 0.6)]
# Use t[0] to compare 0th tuple index
_min = min(data, key = lambda t: t[1]) 




Python

Related
name 'StringType' is not defined Code Example name 'StringType' is not defined Code Example
Euclidean division in python Code Example Euclidean division in python Code Example
pandas reorder columns Code Example pandas reorder columns Code Example
convert response to json python Code Example convert response to json python Code Example
python object of type set is not json serializable Code Example python object of type set is not json serializable Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7