add_misc_table()¶
- audformat.testing.add_misc_table(db, table_id, index, *, columns=None, p_none=None, split_id=None, media_id=None)[source]¶
Add a miscellaneous table with random values.
By default, adds one column for every scheme in the database. To create a specific set of columns use
columns
.- Parameters
db (
Database
) – a databasetable_id (
str
) – ID of table that will be createdindex (
Index
) – index objectcolumns (
Union
[str
,Sequence
[str
],Dict
[str
,Union
[str
,Tuple
[Optional
[str
],Optional
[str
]]]],None
]) – a list of scheme_ids or a dictionary with column names as keys and tuples of(scheme_id, rater_id)
as values.None
values are allowed
- Return type
- Returns
table object