random_choice

ketos.data_handling.selection_table.random_choice(df, siz)[source]

Randomly select a specified number of elements from a table.

Args:
df: pandas DataFrame

Selection table or annotation table

siz: int

Number of elements to be selected

Returns:
sel: pandas DataFrame

Reduced table