code: def compact(self, term_doc_matrix):
  		'''
  		Parameters
  		-------
  		term_doc_matrix : TermDocMatrix
  
  		Returns
  		-------
  
  		New term doc matrix
  		'''
  		count_df = self._get_statistics_dataframe(term_doc_matrix)
  
  		return term_doc_matrix.remove_terms(
  			count_df[count_df['pmi'] < self.minimum_pmi].index
  		f compact(self, term_doc_matrix):
  		'''
  		Parameters
  		-------
  		term_doc_matrix : TermDocMatrix
  
  		Returns
  		-------
  
  		New term doc matrix
  		'''
  		count_df = self._get_statistics_dataframe(term_doc_matrix)
  
  		return term_doc_matrix.remove_terms(
  			count_df[count_df['pmi'] < self.minimum_pmi].index
  		)
docs: Parameters
  		-------
  		term_doc_matrix : TermDocMatrix
  
  		Returns
  		-------
  
  		New term doc matrix