break if not exists: self.df.to_csv( f"{self.daily_folder}/{self.country.lower()}_covid19_{self.date}_{self.hour:0.0f}_{self.minute:02.0f}.csv", index=False) if __name__ == "__main__": column_converter = {"authority": "nuts_3"} daily_files = retrieve_files(ENGLAND_DAILY_FOLDER) daily_files.sort() for file in daily_files: file_path = os.path.join(ENGLAND_DAILY_FOLDER, file) file_transformation = DailyTransformation( file_path=file_path, column_converter=column_converter) file_transformation.workflow() cov_england = SARSCOV2England() cov_england.workflow() da_england = DailyAggregator(base_folder="dataset", daily_folder=ENGLAND_DAILY_FOLDER, country="England") da_england.workflow() print("End of Game")