asreview.io.RISWriter.write_data

classmethod RISWriter.write_data(df, fp, labels=None, ranking=None)[source]

Export dataset.

Parameters:
  • df (pandas.Dataframe) – Dataframe of all available record data.

  • fp (str, pathlib.Path) – File path to the RIS file, if exists.

  • labels (list, numpy.ndarray) – Current labels will be overwritten by these labels (including unlabelled). No effect if labels is None.

  • ranking (list) – Reorder the dataframe according to these (internal) indices. Default ordering if ranking is None.

Returns:

RIS file – Dataframe of all available record data.