df_extensions/space.py
def join_distance(
        self,
        other: Union[Dict[str, pd.DataFrame], pd.DataFrame],
        our_label: Optional[str] = "A",
        their_label: Optional[str] = "B",
    ):
        """
        Either merges self and other
        (both of whichs hould be the result of
        space.self_distance)
        or a dictionary of dataframes and labels
        not including the current dataframe.
        """

        if not isinstance(other, dict):
            df_label_dict = {our_label: self._obj, their_label: other}
        else:
            df_label_dict = other

        return join_distance(df_label_dict)

        Either merges self and other
        (both of whichs hould be the result of
        space.self_distance)
        or a dictionary of dataframes and labels
        not including the current dataframe.
        
Either merges self and other
(both of whichs hould be the result of
space.self_distance)
or a dictionary of dataframes and labels
not including the current dataframe.
Either merges self and other ( both of whichs hould be the result of space . self_distance ) or a dictionary of dataframes and labels not including the current dataframe .
def join_distance(
        self,
        other: Union[Dict[str, pd.DataFrame], pd.DataFrame],
        our_label: Optional[str] = "A",
        their_label: Optional[str] = "B",
    ):
        if not isinstance(other, dict):
            df_label_dict = {our_label: self._obj, their_label: other}
        else:
            df_label_dict = other
        return join_distance(df_label_dict)
def join_distance ( self , other : Union [ Dict [ str , pd . DataFrame ] , pd . DataFrame ] , our_label : Optional [ str ] = "A" , their_label : Optional [ str ] = "B" , ) : if not isinstance ( other , dict ) : df_label_dict = { our_label : self . _obj , their_label : other } else : df_label_dict = other return join_distance ( df_label_dict )
Either merges self and other
(both of whichs hould be the result of
space.self_distance)
or a dictionary of dataframes and labels
not including the current dataframe.
Either merges self and other ( both of whichs hould be the result of space . self_distance ) or a dictionary of dataframes and labels not including the current dataframe .
"""
        Either merges self and other
        (both of whichs hould be the result of
        space.self_distance)
        or a dictionary of dataframes and labels
        not including the current dataframe.
        """
self
other
Union[Dict[str, pd.DataFrame], pd.DataFrame]
our_label
Optional[str]
their_label
Optional[str]