hatchet/graphframe.py
def _operator(self, other, op, *args, **kwargs):
        """Generic function to apply operator to two dataframes and store
        result in self.

        Arguments:
            self (graphframe): self's graphframe
            other (graphframe): other's graphframe
            op (operator): pandas arithmetic operator

        Return:
            (GraphFrame): self's graphframe modified
        """
        # unioned set of self and other exclusive and inclusive metrics
        all_metrics = list(
            set().union(
                self.exc_metrics, self.inc_metrics, other.exc_metrics, other.inc_metrics
            )
        )

        self.dataframe.update(op(other.dataframe[all_metrics], *args, **kwargs))

        return self
Generic function to apply operator to two dataframes and store
        result in self.

        Arguments:
            self (graphframe): self's graphframe
            other (graphframe): other's graphframe
            op (operator): pandas arithmetic operator

        Return:
            (GraphFrame): self's graphframe modified
        
Generic function to apply operator to two dataframes and store
result in self.
Generic function to apply operator to two dataframes and store result in self .
def _operator(self, other, op, *args, **kwargs):
        all_metrics = list(
            set().union(
                self.exc_metrics, self.inc_metrics, other.exc_metrics, other.inc_metrics
            )
        )
        self.dataframe.update(op(other.dataframe[all_metrics], *args, **kwargs))
        return self
def _operator ( self , other , op , * args , ** kwargs ) : all_metrics = list ( set ( ) . union ( self . exc_metrics , self . inc_metrics , other . exc_metrics , other . inc_metrics ) ) self . dataframe . update ( op ( other . dataframe [ all_metrics ] , * args , ** kwargs ) ) return self
Generic function to apply operator to two dataframes and store
result in self.
Generic function to apply operator to two dataframes and store result in self .
"""Generic function to apply operator to two dataframes and store
        result in self.

        Arguments:
            self (graphframe): self's graphframe
            other (graphframe): other's graphframe
            op (operator): pandas arithmetic operator

        Return:
            (GraphFrame): self's graphframe modified
        """ # unioned set of self and other exclusive and inclusive metrics
self
None
other
None
op
pandas arithmetic operator
pandas arithmetic operator