asreview.Dataset.to_dataframe
- Dataset.to_dataframe(labels=None, ranking=None, keep_old_labels=False)[source]
Create new dataframe with updated label (order).
- Parameters:
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 record_ids. Default ordering if ranking is None.
keep_old_labels (bool) – If True, the old labels are kept in a column ‘asreview_label_to_validate’. Default False.
- Returns:
pandas.DataFrame – Dataframe of all available record data.