def __2(_item: CategoryStyled, _phenogroups_comparison: DataFrame) -> str: return f'<td style="{format_style(_item.style)}" colspan="{len(_phenogroups_comparison.columns) + 1}">' + format_item_label( _item) + '</td>'
def __3(_item: Attribute, _phenogroups_comparison: DataFrame) -> str: _html = f'<td class="item">' + format_item_label(_item) + '</td>' phenogroups_comparison_row = _phenogroups_comparison.loc[_item.key] for value in phenogroups_comparison_row: _html += f'<td>{value}</td>' return _html
def __1(_item: Category, _phenogroups_comparison: DataFrame) -> str: return f'<td class="category" colspan="{len(_phenogroups_comparison.columns) + 1}">' + format_item_label( _item) + '</td>'