docstr: Returns a dataframe indexed on the number of groups a term occured in.
  
  Parameters
  ----------
  group_col
  
  Returns
  -------
  pd.DataFrame
docstr_tok: ["Returns","a","dataframe","indexed","on","the","number","of","groups","a","term","occured","in",".","Parameters","--","--","--","--","--","group_col","Returns","--","--","--","-","pd.DataFrame"]
code: def term_group_freq_df(self, group_col):
      # type: (str) -> pd.DataFrame
      """
      Returns a dataframe indexed on the number of groups a term occured in.
  
      Parameters
      ----------
      group_col
  
      Returns
      -------
      pd.DataFrame
      """
      group_idx_store = IndexStore()
      X = self._X
      (
          group_idx_to_cat_idx,
          row_group_cat,
      ) = self._get_group_docids_and_index_store(
          X, group_col, group_idx_store
      )
      newX = self._change_document_type_in_matrix(X, row_group_cat)
      newX = self._make_all_positive_data_ones(newX)
      category_row = newX.tocoo().row
      for group_idx, cat_idx in group_idx_to_cat_idx.items():
          category_row[category_row == group_idx] = cat_idx
      catX = self._change_document_type_in_matrix(newX, category_row)
      return self._term_freq_df_from_matrix(catX)
  
imports: import sys
  from typing import Dict, Hashable
  import pandas
  from scattertext.DataFrameCorpus import DataFrameCorpus
  from scattertext.indexstore.IndexStore import IndexStore
label_desc: Use image node_id 5 for calling the ParsedCorpus obj's underlying member method code with example usage: obj.term_group_freq_df(group_col) and returns: self