(self, data: Optional[Sequence[str]])
Set the row labels to display. If None clear the row names.
Set the row labels to display. If None clear the row names.
Set the row labels to display . If None clear the row names .
def setRowLabels(self, data: Optional[Sequence[str]]):
        """
        Set the row labels to display. If None clear the row names.
        """
        if data is not None:
            data = np.asarray(data, dtype=object)
        for widget, part in zip(self.row_annotation_widgets, self.parts.rows):
            if data is not None:
                widget.setItems(data[part.normalized_indices])
            else:
                widget.clear()
def setRowLabels ( self , data : Optional [ Sequence [ str ] ] ) : if data is not None : data = np . asarray ( data , dtype = object ) for widget , part in zip ( self . row_annotation_widgets , self . parts . rows ) : if data is not None : widget . setItems ( data [ part . normalized_indices ] ) else : widget . clear ( )