compass.utilities.finalize.save_db#

save_db(db, out_dir)[source]#

Split DB into qualitative vs quantitative and save to disk

Parameters:
  • db (pd.DataFrame) – Pandas DataFrame containing ordinance data to save. Must have all columns in QUANT_OUT_COLS and QUAL_OUT_COLS as well as a "quantitative" column that contains a boolean determining whether the rwo belongs in the quantitative output file (True) or the qualitative output file (False).

  • out_dir (path-like) – Path to output directory where ordinance database csv files should be written.