class_docstr: Holds data for an asset class vol surface
  
      
class_docstr_tok: ["Holds","data","for","an","asset","class","vol","surface"]
code: def _extremes(self, min, max, data):
      if min is None:
          min = np.min(data)
      else:
          new_min = np.min(data)
  
          if new_min < min:
              min = new_min
  
      if max is None:
          max = np.max(data)
      else:
          new_max = np.max(data)
  
          if new_max > max:
              max = new_max
  
      return min, max
  
file_path: finmarketpy/finmarketpy/curve/volatility/abstractvolsurface.py
imports: import abc
  import numpy
  from financepy.utils.date import Date
label_desc: Use image node_id 3 for calling the AbstractVolSurface obj's underlying member method code with example usage: obj._extremes(min, max, data) and returns: min,  max