docstr: Set the mean match candidates
  
  Parameters
  ----------
  mean_match_candidates: int or dict
      The number of mean matching candidates to pull.
      One of these candidates will be chosen randomly
      as the imputation value. To skip mean matching,
      set to 0.
  
      If int, that value is used for all variables.
  
      If a dict is passed, it should be of the form:
      {variable: int} pairs. Any variables not specified
      will use the default. Variables can be passed as
      column names or indexes.
  
      For more information about mean matching, see:
      https://github.com/AnotherSamWilson/miceforest#Predictive-Mean-Matching
docstr_tok: ["Set","the","mean","match","candidates","Parameters","--","--","--","--","--","mean_match_candidates",":","int","or","dict","The","number","of","mean","matching","candidates","to","pull",".","One","of","these","candidates","will","be","chosen","randomly","as","the","imputation","value",".","To","skip","mean","matching",",","set","to","0",".","If","int",",","that","value","is","used","for","all","variables",".","If","a","dict","is","passed",",","it","should","be","of","the","form",":","{","variable",":","int","}","pairs",".","Any","variables","not","specified","will","use","the","default",".","Variables","can","be","passed","as","column","names","or","indexes",".","For","more","information","about","mean","matching",",","see",":","https",":","\/\/github.com\/AnotherSamWilson\/miceforest","#","Predictive-Mean-Matching"]
code: def set_mean_match_candidates(self, mean_match_candidates: _t_mmc):
      """
      Set the mean match candidates
  
      Parameters
      ----------
      mean_match_candidates: int or dict
          The number of mean matching candidates to pull.
          One of these candidates will be chosen randomly
          as the imputation value. To skip mean matching,
          set to 0.
  
          If int, that value is used for all variables.
  
          If a dict is passed, it should be of the form:
          {variable: int} pairs. Any variables not specified
          will use the default. Variables can be passed as
          column names or indexes.
  
          For more information about mean matching, see:
          https://github.com/AnotherSamWilson/miceforest#Predictive-Mean-Matching
      """
      self.mean_match_candidates = mean_match_candidates
      self._mmc_formatted = False
  
file_path: miceforest/miceforest/MeanMatchScheme.py
imports: from .compat import pd_DataFrame
  import inspect
  from copy import deepcopy
  from typing import Callable, Union, Dict, Set
  from numpy import dtype
label_desc: Use image node_id 6 for calling the MeanMatchScheme obj's underlying member method code with example usage: obj.set_mean_match_candidates(mean_match_candidates) without return types