code: def get_pmi_df(self, term_doc_matrix, non_text: bool = False):
      freqs = self._get_term_frequencies(non_text, term_doc_matrix)
      pmi_df = self._get_pmi_df(freqs)[
          lambda df: df.Count >= self.minimum_term_count
      ]
      return pmi_df
  
file_path: scattertext/scattertext/termcompaction/npmi_compactor.py
imports: import numpy
  import pandas
  from tqdm.auto import tqdm
  from scattertext.termranking.TermRanker import TermRanker
  from scattertext.termranking.AbsoluteFrequencyRanker import AbsoluteFrequencyRanker
label_desc: Use image node_id 3 for calling the NPMICompactor obj's underlying member method code with example usage: obj.get_pmi_df(term_doc_matrix, non_text) and returns: pmi_df