intent: List of Tuples (string, float)with NaN How to get the min value?
rewritten_intent: Get a minimum value from a list of tuples `list` with values of type `string` and `float` with nan
snippet: min(list, key=lambda x: float('inf') if math.isnan(x[1]) else x[1])