Spaces:
Sleeping
Sleeping
Update helper.py
Browse files
helper.py
CHANGED
@@ -60,10 +60,14 @@ def assign_main_accounts(creators_file, chatter_files):
|
|
60 |
chatters["Main Account"] = creators.iloc[:len(chatters)]["Creator"].values
|
61 |
updated_chatter_files.append(chatters)
|
62 |
|
|
|
|
|
|
|
63 |
return updated_chatter_files, processed_creator_file, combined_assignments
|
64 |
|
65 |
|
66 |
|
|
|
67 |
def save_processed_files(assignments, output_dir):
|
68 |
"""
|
69 |
Save processed chatter files to the output directory.
|
|
|
60 |
chatters["Main Account"] = creators.iloc[:len(chatters)]["Creator"].values
|
61 |
updated_chatter_files.append(chatters)
|
62 |
|
63 |
+
# Combine all updated chatter files into a single DataFrame
|
64 |
+
combined_assignments = pd.concat(updated_chatter_files, ignore_index=True)
|
65 |
+
|
66 |
return updated_chatter_files, processed_creator_file, combined_assignments
|
67 |
|
68 |
|
69 |
|
70 |
+
|
71 |
def save_processed_files(assignments, output_dir):
|
72 |
"""
|
73 |
Save processed chatter files to the output directory.
|