asreview.Dataset.to_file

Dataset.to_file(fp, labels=None, ranking=None, writer=None, keep_old_labels=False)[source]

Export data object to file.

RIS, CSV, TSV and Excel are supported file formats at the moment.

Parameters:
  • fp (str) – Filepath to export to.

  • labels (list, numpy.ndarray) – Labels to be inserted into the dataframe before export.

  • ranking (list, numpy.ndarray) – Optionally, dataframe rows can be reordered.

  • writer (class) – Writer to export the file.

  • keep_old_labels (bool) – If True, the old labels are kept in a column ‘asreview_label_to_validate’. Default False.