Minimal Code clean up
This commit is contained in:
@@ -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')
|
||||
Reference in New Issue
Block a user