code: def test_absolute_frequency_ranker(self):
      tdm = make_a_test_term_doc_matrix()
      ranker = AbsoluteFrequencyRanker(tdm)
      rank_df = ranker.get_ranks()
      self.assertEqual(len(rank_df), 58)
      self.assertEqual(rank_df.loc["hello"].tolist(), [1, 0])
      self.assertEqual(rank_df.loc["blah"].tolist(), [0, 3])
      self.assertEqual(rank_df.loc["name"].tolist(), [1, 1])
  
file_path: scattertext/scattertext/test/test_termRanker.py
imports: from unittest import TestCase
  import numpy
  from scattertext.termranking import AbsoluteFrequencyRanker
  from scattertext.termranking import DocLengthDividedFrequencyRanker
  from scattertext.termranking import DocLengthNormalizedFrequencyRanker
  from scattertext.termranking.OncePerDocFrequencyRanker import OncePerDocFrequencyRanker
  from scattertext.test.test_TermDocMat import make_a_test_term_doc_matrix
label_desc: Use image node_id 1 for calling the TestTermRanker obj's underlying member method code with example usage: obj.test_absolute_frequency_ranker() without return types