trim

ketos.data_handling.selection_table.trim(table, extra_cols=None)[source]

Keep only the columns prescribed by the Ketos annotation format.

Args:
table: pandas DataFrame

Annotation table.

extra_cols: list(str)

Any additional columns that we wish to keep

Returns:
table: pandas DataFrame

Annotation table, after removal of columns.