Simply reshapes an authors to document data.frame to a format gensim expects.

auth2doc(data, author, doc)

Arguments

data

A data.frame.

author

Bare column name containing author names.

doc

Bare column name of document ids.

Value

A Python dict.