df_extensions/space.py
def reverse_raincloud(self, cluster_label: str):
        """
        Raincloud plot for a single cluster showing the
        distribution of different variables
        """
        df = self.df.copy()
        df["Cluster"] = self.get_cluster_labels()
        df = df.melt("Cluster")[lambda df: ~(df["variable"] == " ")]
        df["value"] = df["value"].astype(float)
        df = df[lambda df: (df["Cluster"] == cluster_label)]

        df.viz.raincloud(
            values="value",
            groups="variable",
            title=f"Raincloud plot for Cluster: {cluster_label}",
        )

        Raincloud plot for a single cluster showing the
        distribution of different variables
        
Raincloud plot for a single cluster showing the
distribution of different variables
Raincloud plot for a single cluster showing the distribution of different variables
def reverse_raincloud(self, cluster_label: str):
        df = self.df.copy()
        df["Cluster"] = self.get_cluster_labels()
        df = df.melt("Cluster")[lambda df: ~(df["variable"] == " ")]
        df["value"] = df["value"].astype(float)
        df = df[lambda df: (df["Cluster"] == cluster_label)]
        df.viz.raincloud(
            values="value",
            groups="variable",
            title=f"Raincloud plot for Cluster: {cluster_label}",
        )
def reverse_raincloud ( self , cluster_label : str ) : df = self . df . copy ( ) df [ "Cluster" ] = self . get_cluster_labels ( ) df = df . melt ( "Cluster" ) [ lambda df : ~ ( df [ "variable" ] == " " ) ] df [ "value" ] = df [ "value" ] . astype ( float ) df = df [ lambda df : ( df [ "Cluster" ] == cluster_label ) ] df . viz . raincloud ( values = "value" , groups = "variable" , title = f"Raincloud plot for Cluster: {cluster_label}" , )
Raincloud plot for a single cluster showing the
distribution of different variables
Raincloud plot for a single cluster showing the distribution of different variables
"""
        Raincloud plot for a single cluster showing the
        distribution of different variables
        """
self
cluster_label
str