code: def _topics_as_df(topic_model):
      tdf = topic_model["topics"].to_dataframe()
      return pd.DataFrame(
          np.vstack(tdf["topic_probabilities"].values),
          index=tdf["vocabulary"],
      )
  
file_path: pyLDAvis/pyLDAvis/graphlab.py
imports: import funcy
  import numpy
  import pandas
  import graphlab
  import pyLDAvis
label_desc: Use image node_id 1 for calling a global function with example usage: _topics_as_df(topic_model) and returns: pd