df_extensions/space.py
def df_with_labels(self) -> pd.DataFrame:
        """
        return the original df but with a label column attached
        """
        k = self.k
        df = self.source_df.copy()
        df["label"] = self.get_cluster_labels(include_short=False)
        df["label_id"] = self.get_cluster_label_ids()
        df["label_desc"] = self.get_cluster_descs()
        return df

        return the original df but with a label column attached
        
return the original df but with a label column attached
return the original df but with a label column attached
def df_with_labels(self) -> pd.DataFrame:
        k = self.k
        df = self.source_df.copy()
        df["label"] = self.get_cluster_labels(include_short=False)
        df["label_id"] = self.get_cluster_label_ids()
        df["label_desc"] = self.get_cluster_descs()
        return df
def df_with_labels ( self ) -> pd . DataFrame : k = self . k df = self . source_df . copy ( ) df [ "label" ] = self . get_cluster_labels ( include_short = False ) df [ "label_id" ] = self . get_cluster_label_ids ( ) df [ "label_desc" ] = self . get_cluster_descs ( ) return df
return the original df but with a label column attached
return the original df but with a label column attached
"""
        return the original df but with a label column attached
        """
self