docstr: :return: dict, term -> color
docstr_tok: [":","return",":","dict",",","term","-",">","color"]
code: def get_term_colors(self):
      """
  
      :return: dict, term -> color
      """
      # print(self.category_colors)
      # print(self.term_cat)
  
      term_color = pd.Series(
          self.category_colors[self.term_cat].values,
          index=self.term_cat.index,
      )
  
      def get_hex_color(color):
          return "".join(
              [
                  part if len(part) == 2 else "0" + part
                  for part in [hex(part)[2:] for part in color]
              ]
          )
  
      return term_color.apply(get_hex_color).to_dict()
  
file_path: scattertext/scattertext/CategoryColorAssigner.py
imports: import pandas
  from scattertext.termscoring.RankDifference import RankDifference
  from scattertext.Common import QUALITATIVE_COLORS
  from scattertext.termranking import AbsoluteFrequencyRanker
label_desc: Use image node_id 3 for calling the CategoryColorAssigner obj's underlying member method code with example usage: obj.get_term_colors() and returns: term_color, str