def generate_dataframe_ds(dataset_type): if dataset_type == str(1): new_path = Path('E:/Memoire/ProstateX/generated/train/dataframes/') new_path.mkdir(parents = True, exist_ok = True) else: new_path = Path('E:/Memoire/ProstateX/generated/test/dataframes/') new_path.mkdir(parents = True, exist_ok = True)