code: def execute(cls, ctx, op: "DataFrameReplace"):
      in_data = ctx[op.inputs[0].key]
      to_replace = op.to_replace
      if isinstance(to_replace, SERIES_CHUNK_TYPE):
          to_replace = ctx[to_replace.key]
      value = op.value
      if isinstance(value, SERIES_CHUNK_TYPE):
          value = ctx[value.key]
  
      if not op.fill_chunks:
          concat_data = in_data
      else:
          to_concat = [ctx[c.key] for c in op.fill_chunks]
          if op.method in (no_default, "pad", "ffill"):
              to_concat += [in_data]
          else:
              to_concat = [in_data] + to_concat
          concat_data = pd.concat(to_concat)
  
      replace_args = (to_replace,)
      if value is not no_default:
          replace_args += (value,)
      replace_kwargs = dict(
          regex=op.regex, method=op.method, limit=op.limit
      )
      replace_kwargs = {
          k: v for k, v in replace_kwargs.items() if v is not no_default
      }
  
      result = concat_data.replace(*replace_args, **replace_kwargs)
      del concat_data
  
      if op.stage == OperandStage.map:
          to_slice = op.outputs[0].shape[0]
          if op.method in (no_default, "pad", "ffill"):
              result = result.iloc[-to_slice:]
          else:
              result = result.iloc[:to_slice]
      else:
          to_remove = len(result) - len(in_data)
          if to_remove > 0:
              if op.method in (no_default, "pad", "ffill"):
                  result = result.iloc[to_remove:]
              else:
                  result = result.iloc[:-to_remove]
      ctx[op.outputs[0].key] = result
  
imports: import numpy
  import pandas
  from ...None import opcodes
  from ...core import recursive_tile
  from ...core.operand import OperandStage
  from ...serialization.serializables import FieldTypes, AnyField, Int32Field, ListField
  from ...utils import no_default
  from ..operands import DataFrameOperand, DataFrameOperandMixin, SERIES_TYPE, SERIES_CHUNK_TYPE
  from ..utils import build_df, build_series, parse_index
label_desc: Use image node_id 12 for calling the DataFrameReplace obj's underlying member method code with example usage: obj.execute(cls, ctx, op) without return types