asreview.state.SQLiteState.get_dataset

SQLiteState.get_dataset(columns=None, priors=True, pending=False)[source]

Get a subset from the results table.

Can be used to get any column subset from the results table. Most other get functions use this one, except some that use a direct SQL query for efficiency.

Parameters:
  • columns (list, str) – List of columns names of the results table, or a string containing one column name.

  • priors (bool) – Whether to keep the records containing the prior knowledge.

  • pending (bool) – Whether to keep the records which are pending a labeling decision.

Returns:

pd.DataFrame – Dataframe containing the data of the specified columns of the results table.