docstr: The build method may prune documents based on threshold.
  This method prunes other lists based on how build pruned documents.
  This is useful to filter lists containing metadata associated with documents
  for use with visualize_documents.
  Args:
      obj(list|np.ndarray|pandas.DataFrame):a list, numpy array, or DataFrame of data
  Returns:
      filtered obj
docstr_tok: ["The","build","method","may","prune","documents","based","on","threshold",".","This","method","prunes","other","lists","based","on","how","build","pruned","documents",".","This","is","useful","to","filter","lists","containing","metadata","associated","with","documents","for","use","with","visualize_documents",".","Args",":","obj","(","list|np.ndarray|pandas.DataFrame",")",":","a","list",",","numpy","array",",","or","DataFrame","of","data","Returns",":","filtered","obj"]
code: def filter(self, obj):
      """
      The build method may prune documents based on threshold.
      This method prunes other lists based on how build pruned documents.
      This is useful to filter lists containing metadata associated with documents
      for use with visualize_documents.
      Args:
          obj(list|np.ndarray|pandas.DataFrame):a list, numpy array, or DataFrame of data
      Returns:
          filtered obj
      """
      length = (
          obj.shape[0]
          if isinstance(obj, (pd.DataFrame, np.ndarray))
          else len(obj)
      )
      if length != self.bool_array.shape[0]:
          raise ValueError(
              "Length of obj is not consistent with the number of documents "
              + "supplied to get_topic_model"
          )
      obj = np.array(obj) if isinstance(obj, list) else obj
      return obj[self.bool_array]
  
imports: import time
  from ..None import utils
  from ..imports import *
  from .None import preprocessor
  from .None import textutils
label_desc: Use image node_id 10 for calling the TopicModel obj's underlying member method code with example usage: obj.filter(obj) and returns: obj