Hi could you give me some advice on this code I wrote. I got a type mismatch error related to the for statement. I tried converting it to int but that doesn't work.
proc dataset_minmax(dataset : seq[float]): float = var minmax : seq[float] for i in 0..dataset[0].len: var col_values = row[i] for row in dataset var value_min = min(col_values) var value_max = max(col_values) minmax.append([value_min, value_max])