original_docstring: 
      Map change of rank to color
  
      :param x: row of dataframe
      :param color_dict: color dictionary
      
docstring: Map change of rank to color
docstring_tokens: Map change of rank to color
code: def _rank2color(x, color_dict):
      """
      Map change of rank to color
  
      :param x: row of dataframe
      :param color_dict: color dictionary
      """
  
      if x['feat_rank_x'] < x['feat_rank_y']:
          return color_dict['drop']
      if x['feat_rank_x'] >= x['feat_rank_y']:
          return color_dict['up_or_stable']
      if pd.isnull(x['feat_rank_y']):
          return color_dict['disappear']
      if pd.isnull(x['feat_rank_x']):
          return color_dict['appear']
code_tokens: def _rank2color ( x , color_dict ) : if x [ 'feat_rank_x' ] < x [ 'feat_rank_y' ] : return color_dict [ 'drop' ] if x [ 'feat_rank_x' ] >= x [ 'feat_rank_y' ] : return color_dict [ 'up_or_stable' ] if pd . isnull ( x [ 'feat_rank_y' ] ) : return color_dict [ 'disappear' ] if pd . isnull ( x [ 'feat_rank_x' ] ) : return color_dict [ 'appear' ]
short_docstring: Map change of rank to color
short_docstring_tokens: Map change of rank to color
comment: """
      Map change of rank to color
  
      :param x: row of dataframe
      :param color_dict: color dictionary
      """