df_extensions/space.py
def label_tool(self):
        """
        tool to review how labels assigned for each cluster

        """
        k = self.k

        def func(cluster, sort, include_data_labels):
            if sort == "Index":
                sort = None
            df = self.label_review(
                label=cluster, sort=sort, include_data=include_data_labels
            )
            display(df)
            return df

        sort_options = ["Index", "% of cluster", "% of label"]
        tool = interactive(
            func,
            cluster=self.get_label_options(),
            sort=sort_options,
            include_data_labels=True,
        )
        display(tool)

        tool to review how labels assigned for each cluster

        
tool to review how labels assigned for each cluster
tool to review how labels assigned for each cluster
def label_tool(self):
        k = self.k
        def func(cluster, sort, include_data_labels):
            if sort == "Index":
                sort = None
            df = self.label_review(
                label=cluster, sort=sort, include_data=include_data_labels
            )
            display(df)
            return df
        sort_options = ["Index", "% of cluster", "% of label"]
        tool = interactive(
            func,
            cluster=self.get_label_options(),
            sort=sort_options,
            include_data_labels=True,
        )
        display(tool)
def label_tool ( self ) : k = self . k def func ( cluster , sort , include_data_labels ) : if sort == "Index" : sort = None df = self . label_review ( label = cluster , sort = sort , include_data = include_data_labels ) display ( df ) return df sort_options = [ "Index" , "% of cluster" , "% of label" ] tool = interactive ( func , cluster = self . get_label_options ( ) , sort = sort_options , include_data_labels = True , ) display ( tool )
tool to review how labels assigned for each cluster
tool to review how labels assigned for each cluster
"""
        tool to review how labels assigned for each cluster

        """
self