docstr: Replace `nodata` value in data with NaN
docstr_tok: ["Replace","`","nodata","`","value","in","data","with","NaN"]
code: def replace_value(cls, data, nodata):
      """
      Replace `nodata` value in data with NaN
      """
      data = data.astype("float64")
      mask = data != nodata
      if hasattr(data, "where"):
          return data.where(mask, np.nan)
      return np.where(mask, data, np.nan)
  
imports: import sys
  import warnings
  import numpy
  import param
  from ..None import util
  from ..element import Element
  from ..ndmapping import NdMapping
  from .util import finite_range
label_desc: Use image node_id 14 for calling the Interface obj's underlying member method code with example usage: obj.replace_value(cls, data, nodata) and returns: np, data