class_docstr: Keep only the min/max of streaming values
class_docstr_tok: ["Keep","only","the","min\/max","of","streaming","values"]
code: def add(self, value: float):
      if value > self.max:
          self.max = value
      if value < self.min:
          self.min = value
  
imports: from collections import defaultdict, namedtuple
  import warnings
  import numpy
  from numpy.linalg import norm
  import pandas
  from lifelines.exceptions import ConvergenceWarning
  from typing import *
label_desc: Use image node_id 2 for calling the min_max obj's underlying member method code with example usage: obj.add(value) without return types