1
0

spelling fix.

This commit is contained in:
Nathan TeBlunthuis 2025-01-11 18:59:42 -08:00
parent 0613193e9d
commit ecc50f0249

View File

@ -18,8 +18,8 @@ def build_cluster_timeseries(term_clusters_path="/gscratch/comdata/output/reddit
df_submissions = spark.read.parquet("/gscratch/comdata/output/reddit_submissions_by_subreddit.parquet")
df_comments = df_comments.select(['subreddit','CreatedAt','author'])
df_submisisons = df_comments.select(['subreddit','CreatedAt','author'])
df = df_comments.union(df_submisisons)
df_submissions = df_comments.select(['subreddit','CreatedAt','author'])
df = df_comments.union(df_submissions)
df = df.withColumn('week', f.date_trunc('week', f.col("CreatedAt")))