Minimal Code clean up

This commit is contained in:
bs
2026-01-21 10:04:07 +01:00
parent b01cd988e6
commit 1d14bc0c8d
4 changed files with 31 additions and 27 deletions
+2 -3
View File
@@ -122,7 +122,7 @@ def process_file_15_min(file_path, user_label):
if __name__ == "__main__":
pd.options.mode.copy_on_write = True
# Generate file paths, skipping specified files
# Generate file paths
files = (['Europe/Europe/'+file for file in os.listdir('Europe/Europe/')]
+ ['Rest_of_the_World/'+file for file in os.listdir('Rest_of_the_World')])
@@ -136,8 +136,7 @@ if __name__ == "__main__":
combined_df = pd.concat(processed_dfs, ignore_index=True)
# Save the combined DataFrame to a new Excel file
# Save the combined DataFrame to a new json file
combined_df.to_json(save_name, index=False)
user_counts = combined_df[user_str].value_counts()
print('Done')