else:
include_subs = select_topN_subreddits(topN)
- df = func(df, include_subs, term_colname)
-
- df.write.parquet(outpath,mode='overwrite',compression='snappy')
+ dfwriter = func(df, include_subs, term_colname)
+ dfwriter.parquet(outpath,mode='overwrite',compression='snappy')
spark.stop()
def tfidf(inpath, outpath, topN, term_colname, exclude, included_subreddits):