]> code.communitydata.science - cdsc_reddit.git/blobdiff - author_cosine_similarity.py
bugfix in completing tfidf similarity matrices.
[cdsc_reddit.git] / author_cosine_similarity.py
index 7137da478008e26c2f05fc134f336973e94bb35a..08001c2165460bbea2b7f01d32944d67ed36c52f 100644 (file)
@@ -71,8 +71,8 @@ https://stanford.edu/~rezab/papers/dimsum.pdf. If similarity_threshold=0 we get
     similarities = similarities.join(df, on='j')
     similarities = similarities.rename(columns={'subreddit':"subreddit_j"})
 
-    similarities.write_feather(output_feather)
-    similarities.write_csv(output_csv)
+    similarities.to_feather(output_feather)
+    similarities.to_csv(output_csv)
     return similarities
     
 if __name__ == '__main__':

Community Data Science Collective || Want to submit a patch?