(self, data: Optional[Sequence[str]])
Set the column labels to display. If None clear the row names.
Set the column labels to display. If None clear the row names.
Set the column labels to display . If None clear the row names .
def setColumnLabels(self, data: Optional[Sequence[str]]) -> None:
        """Set the column labels to display. If None clear the row names."""
        if data is not None:
            data = np.asarray(data, dtype=object)
        for top, bottom, part in zip(self.col_annotation_widgets_top,
                                     self.col_annotation_widgets_bottom,
                                     self.parts.columns):
            if data is not None:
                top.setItems(data[part.normalized_indices])
                bottom.setItems(data[part.normalized_indices])
            else:
                top.clear()
                bottom.clear()
def setColumnLabels ( self , data : Optional [ Sequence [ str ] ] ) -> None : if data is not None : data = np . asarray ( data , dtype = object ) for top , bottom , part in zip ( self . col_annotation_widgets_top , self . col_annotation_widgets_bottom , self . parts . columns ) : if data is not None : top . setItems ( data [ part . normalized_indices ] ) bottom . setItems ( data [ part . normalized_indices ] ) else : top . clear ( ) bottom . clear ( )