Skip to content

Commit

Permalink
Replace ints with column and row names
Browse files Browse the repository at this point in the history
  • Loading branch information
severinsimmler committed Mar 8, 2017
1 parent d6a88eb commit 109f18b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dariah_topics/preprocessing.py
Expand Up @@ -606,7 +606,8 @@ def gensim2dataframe(model):
idx = topic_dist[0]
temp = regex.findall(r'\"(.+?)\"', topics[idx][1])
topics_df.loc[idx] = temp

topics_df.index=['Topic ' + str(x+1) for x in range(num_topics)]
topics_df.columns=['Key ' + str(x+1) for x in range(10)]
return topics_df

def save_bow_mm(sparse_bow, output_path):
Expand Down

0 comments on commit 109f18b

Please sign in to comment.