original_docstring: Transform state file into pandas dataframe.
      The MALLET statefile is tab-separated, and the first two rows contain the alpha and beta hypterparamters.
      
      Args:
          statefile (str): Path to statefile produced by MALLET.
      Returns:
          datframe: topic assignment for each token in each document of the model
      
docstring: Transform state file into pandas dataframe.
  The MALLET statefile is tab-separated, and the first two rows contain the alpha and beta hypterparamters.
docstring_tokens: Transform state file into pandas dataframe . The MALLET statefile is tab - separated and the first two rows contain the alpha and beta hypterparamters .
code: def state_to_df(statefile):
      """Transform state file into pandas dataframe.
      The MALLET statefile is tab-separated, and the first two rows contain the alpha and beta hypterparamters.
      
      Args:
          statefile (str): Path to statefile produced by MALLET.
      Returns:
          datframe: topic assignment for each token in each document of the model
      """
      return pd.read_csv(statefile,
                         compression='gzip',
                         sep=' ',
                         skiprows=[1,2]
                         )
code_tokens: def state_to_df ( statefile ) : return pd . read_csv ( statefile , compression = 'gzip' , sep = ' ' , skiprows = [ 1 , 2 ] )
short_docstring: Transform state file into pandas dataframe.
short_docstring_tokens: Transform state file into pandas dataframe .
comment: """Transform state file into pandas dataframe.
      The MALLET statefile is tab-separated, and the first two rows contain the alpha and beta hypterparamters.
      
      Args:
          statefile (str): Path to statefile produced by MALLET.
      Returns:
          datframe: topic assignment for each token in each document of the model
      """