- subreddit_names = subreddit_names.set_index("subreddit_id")
- new_ids = df.loc[:,['subreddit_id','subreddit_id_new']].drop_duplicates()
- new_ids = new_ids.set_index('subreddit_id')
- subreddit_names = subreddit_names.join(new_ids,on='subreddit_id').reset_index()
- subreddit_names = subreddit_names.drop("subreddit_id",1)
- subreddit_names = subreddit_names.sort_values("subreddit_id_new")
- return(df, subreddit_names)
+ # subreddit_names = subreddit_names.set_index("subreddit_id")
+ # new_ids = df.loc[:,['subreddit_id','subreddit_id_new']].drop_duplicates()
+ # new_ids = new_ids.set_index('subreddit_id')
+ # subreddit_names = subreddit_names.join(new_ids,on='subreddit_id').reset_index()
+ # subreddit_names = subreddit_names.drop("subreddit_id",1)
+ # subreddit_names = subreddit_names.sort_values("subreddit_id_new")
+ # return(df, subreddit_names)