skbio.table.Table.add_metadata#

Table.add_metadata(md, axis='sample')[source]#

Take a dict of metadata and add it to an axis.

Parameters:
mddict of dict

md should be of the form {id: {dict_of_metadata}}

axis{‘sample’, ‘observation’}, optional

The axis to operate on