derek-thomas HF staff commited on
Commit
4469d41
1 Parent(s): 1b32c70

Removing old split name

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -29,7 +29,7 @@ def get_dataset():
29
  try:
30
  dataset = load_dataset(dataset_name, download_mode="reuse_cache_if_exists", ignore_verifications=True)
31
  logger.debug("Loading existing dataset")
32
- if "__index_level_0__" in dataset["all_days"].column_names:
33
  dataset = dataset.remove_columns(["__index_level_0__"])
34
  except FileNotFoundError:
35
  logger.warning("Creating new dataset")
 
29
  try:
30
  dataset = load_dataset(dataset_name, download_mode="reuse_cache_if_exists", ignore_verifications=True)
31
  logger.debug("Loading existing dataset")
32
+ if "__index_level_0__" in dataset["train"].column_names:
33
  dataset = dataset.remove_columns(["__index_level_0__"])
34
  except FileNotFoundError:
35
  logger.warning("Creating new dataset")