merge_samples_by_variable¶
- SampleMetadata.merge_samples_by_variable(variable, aggfunc='mean', **kwargs)[source]¶
Merge samples by variable.
- Parameters
aggfunc (Union[str, Callable]) – Aggregation function that will be applied to both
SampleMetadatainstance and ratified to other essentials if contained inBiomeAssemblyinstance.kwargs – Compatibility
- Return type
Optional[Union[Mapping[Optional[Hashable], Any], Callable[[Optional[Hashable]], Optional[Hashable]]]]