docstr: Returns
  -------
  return pd.DataFrame indexed on terms with columns giving how many attributes in convention_df
docstr_tok: ["Returns","--","--","--","-","return","pd.DataFrame","indexed","on","terms","with","columns","giving","how","many","attributes","in","convention_df"]
code: def test_term_group_freq_df(self):
      """
      Returns
      -------
      return pd.DataFrame indexed on terms with columns giving how many attributes in convention_df
  
      """
      group_df = self.corpus.term_group_freq_df("author")
      self.assertEqual(
          set(group_df.index), set(self.corpus._term_idx_store.values())
      )
      self.assertEqual(
          dict(group_df.loc["of"]),
          {"??? freq": 0, "hamlet freq": 2, "jay-z/r. kelly freq": 1},
      )
      self.assertEqual(
          dict(group_df.loc["speak up"]),
          {"??? freq": 1, "hamlet freq": 0, "jay-z/r. kelly freq": 1},
      )
  
file_path: scattertext/scattertext/test/test_ParsedCorpus.py
imports: from unittest import TestCase
  import pandas
  from scattertext import whitespace_nlp, CorpusFromParsedDocuments
  from scattertext.test.test_corpusFromPandas import get_docs_categories
label_desc: Use image node_id 7 for calling the TestParsedCorpus obj's underlying member method code with example usage: obj.test_term_group_freq_df() without return types