code: def csv_to_pickle(path=ROOT / "raw", clean=False):
      
  
      for file in os.listdir(path):
          base, ext = os.path.splitext(file)
          if ext != ".csv":
              continue
  
          LOG(f"converting {file} to pickle")
          df = pd.read_csv(path / file, low_memory=True)
          WRITE_DF(df, path / (base + "." + FILE_EXTENSION), **WRITE_DF_OPTS)
          if clean:
              os.remove(path / file)
              LOG(f"removed {file}")
docs: Convert all CSV files in path to pickle.